Package com.bumptech.glide.load.model
Class AssetUriLoader.FileDescriptorFactory
java.lang.Object
com.bumptech.glide.load.model.AssetUriLoader.FileDescriptorFactory
- All Implemented Interfaces:
AssetUriLoader.AssetFetcherFactory<AssetFileDescriptor>,ModelLoaderFactory<Uri,AssetFileDescriptor>
- Enclosing class:
- AssetUriLoader<Data>
public static class AssetUriLoader.FileDescriptorFactory
extends Object
implements ModelLoaderFactory<Uri,AssetFileDescriptor>, AssetUriLoader.AssetFetcherFactory<AssetFileDescriptor>
Factory for loading
AssetFileDescriptors from asset manager Uris.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(MultiModelLoaderFactory multiFactory) Build a concrete ModelLoader for this model type.buildFetcher(AssetManager assetManager, String assetPath) voidteardown()A lifecycle method that will be called when this factory is about to replaced.
-
Constructor Details
-
FileDescriptorFactory
-
-
Method Details
-
build
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<Uri,AssetFileDescriptor> - 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()Description copied from interface:ModelLoaderFactoryA lifecycle method that will be called when this factory is about to replaced.- Specified by:
teardownin interfaceModelLoaderFactory<Uri,AssetFileDescriptor>
-
buildFetcher
- Specified by:
buildFetcherin interfaceAssetUriLoader.AssetFetcherFactory<AssetFileDescriptor>
-