Class: AndroidDynamicColor
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:35
Returns Android Dynamic Color based on user's wallpaper and style.
If you instantiate the class with undefined dark option or get the instantiated class with AndroidDynamicColor.dynamic static method,
the module will returns color scheme based on user's theme setting.
If you are using Expo, the userInterfaceStyle (from expo-system-ui) configuration, or other frameworks configuration is ignored, because the theme (dark or light) detection is using Android native API
Extends
DynamicColorPalettesDelegate
Extended by
Implements
AndroidDynamicColorInterface
Constructors
Constructor
new AndroidDynamicColor(
options?):AndroidDynamicColor
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:77
Parameters
options?
Returns
AndroidDynamicColor
Overrides
DynamicColorPalettesDelegate.constructor
Methods
dark()
staticdark():AndroidDynamicColor
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:61
Returns
AndroidDynamicColor
dynamic()
staticdynamic():AndroidDynamicColor
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:57
Returns
AndroidDynamicColor
isAvailable()
staticisAvailable():boolean
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:42
Check if Android Dynamic Color is available on the current SDK level
Returns
boolean
light()
staticlight():AndroidDynamicColor
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:67
Returns
AndroidDynamicColor
Properties
colorScheme
readonlycolorScheme:ColorScheme
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:73
Implementation of
AndroidDynamicColorInterface.colorScheme
errorPalette
readonlyerrorPalette:DynamicColorPalette
Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:18
Implementation of
AndroidDynamicColorInterface.errorPalette
Inherited from
DynamicColorPalettesDelegate.errorPalette
neutralPalette
readonlyneutralPalette:DynamicColorPalette
Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:19
Implementation of
AndroidDynamicColorInterface.neutralPalette
Inherited from
DynamicColorPalettesDelegate.neutralPalette
neutralVariantPalette
readonlyneutralVariantPalette:DynamicColorPalette
Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:20
Implementation of
AndroidDynamicColorInterface.neutralVariantPalette
Inherited from
DynamicColorPalettesDelegate.neutralVariantPalette
primaryPalette
readonlyprimaryPalette:DynamicColorPalette
Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:15
Implementation of
AndroidDynamicColorInterface.primaryPalette
Inherited from
DynamicColorPalettesDelegate.primaryPalette
secondaryPalette
readonlysecondaryPalette:DynamicColorPalette
Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:16
Implementation of
AndroidDynamicColorInterface.secondaryPalette
Inherited from
DynamicColorPalettesDelegate.secondaryPalette
tertiaryPalette
readonlytertiaryPalette:DynamicColorPalette
Defined in: modules/android-dynamic-color/_DynamicColorPalettesDelegate.ts:17
Implementation of
AndroidDynamicColorInterface.tertiaryPalette
Inherited from
DynamicColorPalettesDelegate.tertiaryPalette
theme
readonlytheme:"light"|"dark"
Defined in: modules/android-dynamic-color/AndroidDynamicColor.ts:75
Implementation of
AndroidDynamicColorInterface.theme