rememberGeneratePalette

fun Resource.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Resource.

Return

A PaletteResult that will be remembered across compositions.

Parameters

coroutineContext

The CoroutineContext to use for generating the PaletteResult.

block

A block to configure the Palette.Builder.