LocalUriFetcher

abstract class LocalUriFetcher<T> : DataFetcher<T>

A DataFetcher that uses an android.content.ContentResolver to load data from a pointing to a local resource.

Parameters

<T>

The type of data that will obtained for the given uri (For example, or android.os.ParcelFileDescriptor.

Constructors

Link copied to clipboard
open fun LocalUriFetcher(contentResolver: ContentResolver, uri: Uri)
Opens an input stream for a uri pointing to a local asset.

Functions

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
abstract fun getDataClass(): Class<T>
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
fun loadData(priority: Any, callback: DataFetcher.DataCallback<out Any>)
Fetch data from which a resource can be decoded.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard