Class MediaStoreVideoThumbLoader.Factory
- java.lang.Object
-
- com.bumptech.glide.load.model.stream.MediaStoreVideoThumbLoader.Factory
-
- All Implemented Interfaces:
ModelLoaderFactory<android.net.Uri,java.io.InputStream>
- Enclosing class:
- MediaStoreVideoThumbLoader
public static class MediaStoreVideoThumbLoader.Factory extends java.lang.Object implements ModelLoaderFactory<android.net.Uri,java.io.InputStream>
LoadsInputStreams from media store imageUris that point to pre-generated thumbnails for thoseUris in the media store.
-
-
Constructor Summary
Constructors Constructor Description Factory(android.content.Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelLoader<android.net.Uri,java.io.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.
-
-
-
Method Detail
-
build
@NonNull public ModelLoader<android.net.Uri,java.io.InputStream> build(MultiModelLoaderFactory multiFactory)
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<android.net.Uri,java.io.InputStream>- 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<android.net.Uri,java.io.InputStream>
-
-