• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ConfigurationConstant
2
3> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
4> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
5
6
7Defines enumerated values of the configuration for the environment where the ability is running.
8
9
10## Modules to Import
11
12
13```js
14import ConfigurationConstant from '@ohos.application.ConfigurationConstant';
15```
16
17
18## ConfigurationConstant.ColorMode
19
20The value is obtained through the **ConfigurationConstant.ColorMode** API.
21
22**Example**
23
24```
25ConfigurationConstant.ColorMode.COLOR_MODE_LIGHT
26```
27
28**System capability**: SystemCapability.Ability.AbilityBase
29
30| Name| Value| Description|
31| -------- | -------- | -------- |
32| COLOR_MODE_NOT_SET | -1 | Unspecified color mode.|
33| COLOR_MODE_DARK | 0 | Dark mode.|
34| COLOR_MODE_LIGHT | 1 | Light mode.|
35