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?, throwable: Throwable) : ImagePainter.State
The request failed due to 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, metadata: ImageResult.Metadata) : 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