-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.model.ModelLoaderFactory,com.mobwith.imgmodule.load.model.UriLoader.LocalUriFetcherFactory
public class UriLoader.FileDescriptorFactory implements ModelLoaderFactory<Uri, ParcelFileDescriptor>, UriLoader.LocalUriFetcherFactory<ParcelFileDescriptor>
Loads ParcelFileDescriptors from Uris.
-
-
Constructor Summary
Constructors Constructor Description UriLoader.FileDescriptorFactory(ContentResolver contentResolver)
-
Method Summary
Modifier and Type Method Description DataFetcher<ParcelFileDescriptor>build(Uri uri)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. -
Methods inherited from class com.mobwith.imgmodule.load.model.ModelLoaderFactory
build -
Methods inherited from class com.mobwith.imgmodule.load.model.UriLoader.LocalUriFetcherFactory
build -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UriLoader.FileDescriptorFactory
UriLoader.FileDescriptorFactory(ContentResolver contentResolver)
-
-
Method Detail
-
build
DataFetcher<ParcelFileDescriptor> build(Uri uri)
-
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.
-
-
-
-