State

@ExperimentalCoilApi
sealed class State

The current state of the ImagePainter.

Types

Empty
Link copied to clipboard
object Empty : ImagePainter.State

The request has not been started.

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

The request failed due to ErrorResult.throwable.

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

The request is in-progress.

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

The request was successful.

Properties

painter
Link copied to clipboard
abstract val painter: Painter?

The current painter being drawn by ImagePainter.

Inheritors

ImagePainter.State
Link copied to clipboard
ImagePainter.State
Link copied to clipboard
ImagePainter.State
Link copied to clipboard
ImagePainter.State
Link copied to clipboard