UnitModelLoader

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

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

Link copied to clipboard
open fun UnitModelLoader()

Types

Link copied to clipboard
open class Factory<Model> : ModelLoaderFactory<T, Y>

Functions

Link copied to clipboard
open fun buildLoadData(    model: Model,     width: Int,     height: Int,     options: Options): ModelLoader.LoadData<Model>
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 <T> getInstance(): UnitModelLoader<T>
Link copied to clipboard
open fun handles(model: Model): Boolean
Returns true if the given model is a of a recognized type that this loader can probably load.