DataUrlLoader
A simple model loader for loading data from a Data URL String.
Data URIs use the "data" scheme.
See http://www.ietf.org/rfc/rfc2397.txt for a complete description of the 'data' URL scheme.
Briefly, a 'data' URL has the form:
data:[mediatype][;base64],some_data
Content copied to clipboard
Parameters
<Model>
The type of Model that we can retrieve data for, e.g. String.
<Data>
The type of data that can be opened, e.g. InputStream.
Constructors
Types
Link copied to clipboard
Allows decoding a specific type of data from a Data URL String.
Link copied to clipboard
Factory for loading InputStreams from data uris.
Functions
Link copied to clipboard
open fun buildLoadData( model: Model, width: Int, height: Int, options: Options): ModelLoader.LoadData<Data>
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.