-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.model.ModelLoaderFactory,com.mobwith.imgmodule.load.model.UriLoader.LocalUriFetcherFactory
public class UriLoader.StreamFactory implements ModelLoaderFactory<Uri, InputStream>, UriLoader.LocalUriFetcherFactory<InputStream>
Loads InputStreams from Uris.
-
-
Constructor Summary
Constructors Constructor Description UriLoader.StreamFactory(ContentResolver contentResolver)
-
Method Summary
Modifier and Type Method Description DataFetcher<InputStream>build(Uri uri)ModelLoader<Uri, InputStream>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.StreamFactory
UriLoader.StreamFactory(ContentResolver contentResolver)
-
-
Method Detail
-
build
DataFetcher<InputStream> build(Uri uri)
-
build
@NonNull() ModelLoader<Uri, InputStream> 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.
-
-
-
-