AssetUriLoader

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

Loads a specific data type from an Asset Manager Uri.

Parameters

<Data>

The type of data this loader will obtain.

Constructors

Link copied to clipboard
open fun AssetUriLoader(assetManager: AssetManager, factory: AssetUriLoader.AssetFetcherFactory<Data>)

Types

Link copied to clipboard
interface AssetFetcherFactory<Data>
A factory to build a DataFetcher for a specific asset path.
Link copied to clipboard
Factory for loading AssetFileDescriptors from asset manager Uris.
Link copied to clipboard
open class StreamFactory : ModelLoaderFactory<T, Y> , AssetUriLoader.AssetFetcherFactory<Data>
Factory for loading InputStreams from asset manager 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.