-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.model.AssetUriLoader.AssetFetcherFactory,com.mobwith.imgmodule.load.model.ModelLoaderFactory
public class AssetUriLoader.FileDescriptorFactory implements ModelLoaderFactory<Uri, ParcelFileDescriptor>, AssetUriLoader.AssetFetcherFactory<ParcelFileDescriptor>
Factory for loading ParcelFileDescriptors from asset manager Uris.
-
-
Constructor Summary
Constructors Constructor Description AssetUriLoader.FileDescriptorFactory(AssetManager assetManager)
-
Method Summary
Modifier and Type Method Description ModelLoader<Uri, ParcelFileDescriptor>build(MultiModelLoaderFactory multiFactory)Build a concrete ModelLoader for this model type. voidteardown()A lifecycle method that will be called when this factory is about to replaced. DataFetcher<ParcelFileDescriptor>buildFetcher(AssetManager assetManager, String assetPath)-
Methods inherited from class com.mobwith.imgmodule.load.model.ModelLoaderFactory
build -
Methods inherited from class com.mobwith.imgmodule.load.model.AssetUriLoader.AssetFetcherFactory
buildFetcher -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AssetUriLoader.FileDescriptorFactory
AssetUriLoader.FileDescriptorFactory(AssetManager assetManager)
-
-
Method Detail
-
build
@NonNull() ModelLoader<Uri, ParcelFileDescriptor> build(MultiModelLoaderFactory multiFactory)
Build a concrete ModelLoader for this model type.
- Parameters:
multiFactory- A map of classes to factories that can be used to construct additionalModelLoaders that this factory's ModelLoader may depend on
-
teardown
void teardown()
A lifecycle method that will be called when this factory is about to replaced.
-
buildFetcher
DataFetcher<ParcelFileDescriptor> buildFetcher(AssetManager assetManager, String assetPath)
-
-
-
-