ThumbFetcher

open class ThumbFetcher : DataFetcher<T>

A DataFetcher implementation for InputStreams that loads data from thumbnail files obtained from the MediaStore.

Functions

Link copied to clipboard
open fun buildImageFetcher(context: Context, uri: Uri): ThumbFetcher
Link copied to clipboard
open fun buildVideoFetcher(context: Context, uri: Uri): ThumbFetcher
Link copied to clipboard
open fun cancel()
A method that will be called when a load is no longer relevant and has been cancelled.
Link copied to clipboard
open fun cleanup()
Cleanup or recycle any resources used by this data fetcher.
Link copied to clipboard
open fun getDataClass(): Class<InputStream>
Returns the class of the data this fetcher will attempt to obtain.
Link copied to clipboard
open fun getDataSource(): DataSource
Returns the com.bumptech.glide.load.DataSource this fetcher will return data from.
Link copied to clipboard
open fun loadData(priority: Any, callback: DataFetcher.DataCallback<out Any>)
Fetch data from which a resource can be decoded.