rememberDrawablePaletteState
fun rememberDrawablePaletteState(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, context: Context = LocalContext.current, builder: Palette.Builder.() -> Unit = {}): PaletteState<Int>
Wrapper around rememberPaletteState that uses com.kmpalette.loader.DrawableLoader to load the image.
Return
A PaletteState that will be remembered across composition.
Parameters
cacheSize
The maximum number of Palettes to cache. If 0, no caching will be done.
coroutineContext
The CoroutineContext to use for generating Palettes.
context
The Context to use for loading the Android drawable resource.
builder
A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.