State

sealed interface State

The current state of the AsyncImagePainter.

Inheritors

Types

Link copied to clipboard

The request has not been started.

Link copied to clipboard
data class Error(val painter: Painter?, val result: ErrorResult) : AsyncImagePainter.State

The request failed due to ErrorResult.throwable.

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

The request is in-progress.

Link copied to clipboard
data class Success(val painter: Painter, val result: SuccessResult) : AsyncImagePainter.State

The request was successful.

Properties

Link copied to clipboard
abstract val painter: Painter?

The current painter being drawn by AsyncImagePainter.