Skip to main content

Function: useAndroidDynamicColor()

useAndroidDynamicColor(options?): UseAndroidDynamicColorInstance

Defined in: hooks/use-android-dynamic-color/useAndroidDynamicColor.tsx:24

Returns Android Dynamic Color based on user's wallpaper and style. It automatically updates if app color scheme changes

Android Dynamic Color is only supported on Android and SDK 31 (Android 12) or latest. You may want to use useAndroidDynamicColorCompat in case the current app is not compatible, and still get the material color from a source color as a fallback.

Parameters

options?

UseAndroidDynamicColorOptions

Returns

UseAndroidDynamicColorInstance