rememberGeneratePalette
fun String.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult
Generate and remember a PaletteResult from a absolute file path String.
You must import the okio 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.
fun Path.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult
Generate and remember a PaletteResult from a Path.
You must import the okio 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.