PaletteResult

interface PaletteResult

Wrapper result class for the generation of a Palette.

Inheritors

Types

Link copied to clipboard
data class Error(val cause: Throwable) : PaletteResult

An error occurred while generating the Palette.

Link copied to clipboard
data object Loading : PaletteResult

Palette is being generated.

Link copied to clipboard
data class Success(val palette: Palette) : PaletteResult

A successful result of a Palette generation.

Properties

Link copied to clipboard

Returns the generated Palette if this is a Success result, otherwise null.