RemoteImage

data class RemoteImage(val uri: Uri, val placeholder: DrawableResolver? = null, val fallback: DrawableResolver? = null) : Parcelable

A data class that represents a remote image. The source uri, a placeholder to display before the download successfully completes and an fallback to display if the download fails.

Constructors

Link copied to clipboard
constructor(uri: Uri, placeholder: DrawableResolver? = null, fallback: DrawableResolver? = null)

Properties

Link copied to clipboard

The drawable to show when the download has failed.

Link copied to clipboard

The drawable to show before the download completes successfully.

Link copied to clipboard
val uri: Uri

The Uri to download the drawable from.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)