UriLoader

open class UriLoader<Data> : ModelLoader<Model, Data>

A ModelLoader for android.net.Uris that handles local android.net.Uris directly and routes remote android.net.Uris to a wrapped that handles s.

Parameters

<Data>

The type of data that will be retrieved for android.net.Uris.

Constructors

Link copied to clipboard
open fun UriLoader(factory: UriLoader.LocalUriFetcherFactory<Data>)

Types

Link copied to clipboard
Loads AssetFileDescriptors from Uris.
Link copied to clipboard
Loads ParcelFileDescriptors from Uris.
Link copied to clipboard
interface LocalUriFetcherFactory<Data>
Factory for obtaining a DataFetcher for a data type for a particular Uri.
Link copied to clipboard
open class StreamFactory : ModelLoaderFactory<T, Y> , UriLoader.LocalUriFetcherFactory<Data>
Loads InputStreams from Uris.

Functions

Link copied to clipboard
open fun buildLoadData(    model: Uri,     width: Int,     height: Int,     options: Options): ModelLoader.LoadData<Data>
Returns a com.bumptech.glide.load.model.ModelLoader.LoadData containing a required to decode the resource represented by this model, as well as a set of Keys that identify the data loaded by the com.bumptech.glide.load.data.DataFetcher as well as an optional list of alternate keys from which equivalent data can be loaded.
Link copied to clipboard
open fun handles(model: Uri): Boolean
Returns true if the given model is a of a recognized type that this loader can probably load.