Package-level declarations

Functions

Link copied to clipboard
fun rememberPainterDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, density: Density = LocalDensity.current, layoutDirection: LayoutDirection = LocalLayoutDirection.current, isSwatchValid: (Palette.Swatch) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Painter>

Wrapper around rememberDominantColorState that uses com.kmpalette.loader.PainterLoader to load the image.

Link copied to clipboard
fun rememberPainterPaletteState(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, density: Density = LocalDensity.current, layoutDirection: LayoutDirection = LocalLayoutDirection.current, builder: Palette.Builder.() -> Unit = {}): PaletteState<Painter>

Wrapper around rememberPaletteState that uses PainterLoader to load the image.