State

sealed class State

The current state of the Image.

Inheritors

Types

Link copied to clipboard
object Empty : State

The request has not been started or the request has no data

Link copied to clipboard
data class Error(val painter: Painter?) : State

The request failed due to ErrorResult.throwable.

Link copied to clipboard
data class Loading(val painter: Painter?) : State

The request is in-progress.

Link copied to clipboard
data class Success(val painter: Painter) : State

The request was successful.

Properties

Link copied to clipboard
abstract val painter: Painter?

The current painter being drawn by Image.