rememberGeneratePalette

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

Generate and remember a PaletteResult from a Url.

You must import the Ktor client library to use this loader.

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.