Skip to main content

Interface: UseAndroidDynamicColorCompatInstance

Defined in: hooks/use-android-dynamic-color-compat/UseAndroidDynamicColorCompatInstance.ts:10

Android Dynamic Color is only supported on Android and SDK 31 (Android 12) or latest.

You may use the useAndroidDynamicColorCompat 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.

Extends

Properties

colorScheme

readonly colorScheme: ColorScheme

Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:73

Inherited from

UseAndroidDynamicColorInstance.colorScheme


errorPalette

readonly errorPalette: DynamicColorPalette

Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:18

Inherited from

AndroidDynamicColor.errorPalette


neutralPalette

readonly neutralPalette: DynamicColorPalette

Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:19

Inherited from

AndroidDynamicColor.neutralPalette


neutralVariantPalette

readonly neutralVariantPalette: DynamicColorPalette

Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:20

Inherited from

AndroidDynamicColor.neutralVariantPalette


primaryPalette

readonly primaryPalette: DynamicColorPalette

Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:15

Inherited from

AndroidDynamicColor.primaryPalette


secondaryPalette

readonly secondaryPalette: DynamicColorPalette

Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:16

Inherited from

AndroidDynamicColor.secondaryPalette


tertiaryPalette

readonly tertiaryPalette: DynamicColorPalette

Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:17

Inherited from

AndroidDynamicColor.tertiaryPalette


theme

readonly theme: "light" | "dark"

Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:75

Inherited from

UseAndroidDynamicColorInstance.theme