Palette State
constructor(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {})
Parameters
T
The type of the input to load with loader.
cache Size
The maximum number of Palettes to cache. If 0, no caching will be done.
coroutine Context
The CoroutineContext to use for generating Palettes.
builder
A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.