Image

data class Image(@DrawableRes val default: Int, @DrawableRes val dark: Int?, val size: Placeholder.Image.Size)

Properties of image for placeholder.

Constructors

Link copied to clipboard
constructor(@DrawableRes default: Int, @DrawableRes dark: Int?, size: Placeholder.Image.Size)

Types

Link copied to clipboard
sealed interface Size

Size policy for the image of placeholder.

Properties

Link copied to clipboard
val dark: Int?

The image for dark mode. If null, the default image is used even in dark mode.

Link copied to clipboard

The default image

Link copied to clipboard

The size of the image