DrawableResult

data class DrawableResult(drawable: Drawable, isSampled: Boolean, dataSource: DataSource) : FetchResult

A direct Drawable result. Return this from a Fetcher if its data cannot be converted into a BufferedSource.

Parameters

drawable

The loaded Drawable.

isSampled

True if drawable is sampled (i.e. not loaded into memory at full size).

dataSource

The source that drawable was fetched from.

Constructors

DrawableResult
Link copied to clipboard
fun DrawableResult(drawable: Drawable, isSampled: Boolean, dataSource: DataSource)
The loaded Drawable.

Properties

dataSource
Link copied to clipboard
val dataSource: DataSource
The source that drawable was fetched from.
drawable
Link copied to clipboard
val drawable: Drawable
The loaded Drawable.
isSampled
Link copied to clipboard
val isSampled: Boolean
True if drawable is sampled (i.e.