DrawableResult

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 fetched Drawable.

isSampled

'true' if drawable is sampled (i.e. loaded into memory at less than its original size).

dataSource

The source that drawable was fetched from.

Constructors

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

Functions

copy
Link copied to clipboard
fun copy(drawable: Drawable = this.drawable, isSampled: Boolean = this.isSampled, dataSource: DataSource = this.dataSource): DrawableResult
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int

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 fetched Drawable.
isSampled
Link copied to clipboard
val isSampled: Boolean
'true' if drawable is sampled (i.e.