Package-level declarations
Functions
Link copied to clipboard
fun rememberDrawableDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, context: Context = LocalContext.current, isSwatchValid: (Palette.Swatch) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Int>
Wrapper around rememberDominantColorState that uses com.kmpalette.loader.DrawableLoader to load the image.
Link copied to clipboard
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.
Link copied to clipboard
fun rememberResourceDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isSwatchValid: (Palette.Swatch) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<DrawableResource>
Wrapper around rememberDominantColorState that uses com.kmpalette.loader.PainterLoader to load the image.
Link copied to clipboard
fun rememberResourcePaletteState(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<DrawableResource>
Wrapper around rememberPaletteState that uses com.kmpalette.loader.ResourceLoader to load the image.