• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.application.ConfigurationConstant (ConfigurationConstant)
2
3The **ConfigurationConstant** module provides the enumerated values of the environment configuration information.
4
5> **NOTE**
6>
7> The APIs of this module are supported since API version 8 and deprecated since API version 9. You are advised to use [@ohos.app.ability.ConfigurationConstant](js-apis-app-ability-configurationConstant.md) instead. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## Modules to Import
10
11```ts
12import ConfigurationConstant from '@ohos.application.ConfigurationConstant';
13```
14
15## ConfigurationConstant.ColorMode
16
17You can obtain the value of this constant by calling the **ConfigurationConstant.ColorMode** API.
18
19**System capability**: SystemCapability.Ability.AbilityBase
20
21| Name| Value| Description|
22| -------- | -------- | -------- |
23| COLOR_MODE_NOT_SET | -1 | Unspecified color mode.|
24| COLOR_MODE_DARK | 0 | Dark mode.|
25| COLOR_MODE_LIGHT | 1 | Light mode.|
26