Package-level declarations

Functions

Link copied to clipboard
fun rememberPlatformFileDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isSwatchValid: (Palette.Swatch) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<PlatformFile>

Wrapper around rememberDominantColorState that uses PlatformFileLoader to load the image.

Link copied to clipboard
fun rememberPlatformFilePaletteState(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<PlatformFile>

Wrapper around rememberPaletteState that uses PlatformFileLoader to load the image.