ResourceLoader

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

A model loader for handling Android resource files. Model must be an Android resource id in the package of the given context.

Parameters

<Data>

The type of data that will be loaded for the given android resource.

Constructors

Link copied to clipboard
open fun ResourceLoader(resources: Resources, uriLoader: ModelLoader<Uri, Data>)

Types

Link copied to clipboard
class AssetFileDescriptorFactory : ModelLoaderFactory<T, Y>
Loads AssetFileDescriptors from resource ids.
Link copied to clipboard
open class FileDescriptorFactory : ModelLoaderFactory<T, Y>
Factory for loading ParcelFileDescriptors from Android resource ids.
Link copied to clipboard
open class StreamFactory : ModelLoaderFactory<T, Y>
Factory for loading InputStreams from Android resource ids.
Link copied to clipboard
open class UriFactory : ModelLoaderFactory<T, Y>
Factory for loading resource Uris from Android resource ids.

Functions

Link copied to clipboard
open fun buildLoadData(    model: Integer,     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: Integer): Boolean
Returns true if the given model is a of a recognized type that this loader can probably load.