Function: useAndroidDynamicColorCompat()
useAndroidDynamicColorCompat(
sourceColorFallback,options?):UseAndroidDynamicColorCompatInstance
Defined in: hooks/use-android-dynamic-color-compat/useAndroidDynamicColorCompat.tsx:26
Android Dynamic Color is only supported on Android and SDK 31 (Android 12) or latest.
You may use this hook to get consistent result, but you have to provide a source color as a fallback in case the current app is outside of the compatibility constraints.
Parameters
sourceColorFallback
string
Provide a source color to build a material color as a fallback