Package com.bumptech.glide.load.model
Class ResourceLoader.FileDescriptorFactory
java.lang.Object
com.bumptech.glide.load.model.ResourceLoader.FileDescriptorFactory
- All Implemented Interfaces:
ModelLoaderFactory<Integer,ParcelFileDescriptor>
- Enclosing class:
- ResourceLoader<Data>
@Deprecated
public static class ResourceLoader.FileDescriptorFactory
extends Object
implements ModelLoaderFactory<Integer,ParcelFileDescriptor>
Deprecated.
Factory for loading
ParcelFileDescriptors from Android resource ids.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(MultiModelLoaderFactory multiFactory) Deprecated.Build a concrete ModelLoader for this model type.voidteardown()Deprecated.A lifecycle method that will be called when this factory is about to replaced.
-
Constructor Details
-
FileDescriptorFactory
Deprecated.
-
-
Method Details
-
build
@NonNull public ModelLoader<Integer,ParcelFileDescriptor> build(MultiModelLoaderFactory multiFactory) Deprecated.Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<Integer,ParcelFileDescriptor> - Parameters:
multiFactory- A map of classes to factories that can be used to construct additionalModelLoaders that this factory'sModelLoadermay depend on- Returns:
- A new
ModelLoader
-
teardown
public void teardown()Deprecated.Description copied from interface:ModelLoaderFactoryA lifecycle method that will be called when this factory is about to replaced.- Specified by:
teardownin interfaceModelLoaderFactory<Integer,ParcelFileDescriptor>
-
ResourceLoader.AssetFileDescriptorFactoryshould be preferred because it's not possible to reliably load a simpleFileDescriptorfor resources.