UnitModelLoader
A put of helper classes that performs no loading and instead always returns the given model as the data to decode.
Parameters
<Model>
The type of model that will also be returned as decodable data.
Constructors
Types
Link copied to clipboard
Factory for producing com.bumptech.glide.load.model.UnitModelLoaders.
Functions
Link copied to clipboard
open fun buildLoadData( model: Model, width: Int, height: Int, options: Options): ModelLoader.LoadData<Model>
Content copied to clipboard
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