buildLoadData

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. The DataFetcher will not be used if the resource is already cached.

Note - If no valid data fetcher can be returned (for example if a model has a null URL), then it is acceptable to return a null data fetcher from this method.

Parameters

model

The model representing the resource.

width

The width in pixels of the view or target the resource will be loaded into, or SIZE_ORIGINAL to indicate that the resource should be loaded at its original width.

height

The height in pixels of the view or target the resource will be loaded into, or SIZE_ORIGINAL to indicate that the resource should be loaded at its original height.