Package-level declarations
Functions
Link copied to clipboard
fun Url.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult
Generate and remember a PaletteResult from a Url.
Link copied to clipboard
fun rememberNetworkDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, httpClient: HttpClient = HttpClient(), httpRequestBuilder: HttpRequestBuilder = HttpRequestBuilder(), coroutineContext: CoroutineContext = Dispatchers.Default, isSwatchValid: (Palette.Swatch) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Url>
Wrapper around rememberDominantColorState that uses NetworkLoader to load the image.
Link copied to clipboard
fun rememberNetworkPaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, httpClient: HttpClient = HttpClient(), httpRequestBuilder: HttpRequestBuilder = HttpRequestBuilder(), coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Url>
Wrapper around rememberPaletteState that uses NetworkLoader to load the image.