1# @ohos.app.ability.ConfigurationConstant (ConfigurationConstant) 2 3The **ConfigurationConstant** module provides the enumerated values of the environment configuration information. 4 5> **NOTE** 6> 7> The initial APIs of this module are supported since API version 9. 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.app.ability.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 27 28## ConfigurationConstant.Direction<sup>9+</sup> 29 30You can obtain the value of this constant by calling the **ConfigurationConstant.Direction** API. 31 32**System capability**: SystemCapability.Ability.AbilityBase 33 34| Name| Value| Description| 35| -------- | -------- | -------- | 36| DIRECTION_NOT_SET | -1 | Unspecified direction.| 37| DIRECTION_VERTICAL | 0 | Vertical direction.| 38| DIRECTION_HORIZONTAL | 1 | Horizontal direction.| 39 40 41## ConfigurationConstant.ScreenDensity<sup>9+</sup> 42 43You can obtain the value of this constant by calling the **ConfigurationConstant.ScreenDensity** API. 44 45**System capability**: SystemCapability.Ability.AbilityBase 46 47| Name| Value| Description| 48| -------- | -------- | -------- | 49| SCREEN_DENSITY_NOT_SET | 0 | The screen pixel density is not set.| 50| SCREEN_DENSITY_SDPI | 120 | The pixel density of the screen is 'sdpi'.| 51| SCREEN_DENSITY_MDPI | 160 | The pixel density of the screen is 'mdpi'.| 52| SCREEN_DENSITY_LDPI | 240 | The pixel density of the screen is 'ldpi'.| 53| SCREEN_DENSITY_XLDPI | 320 | The pixel density of the screen is 'xldpi'.| 54| SCREEN_DENSITY_XXLDPI | 480 | The pixel density of the screen is 'xxldpi'.| 55| SCREEN_DENSITY_XXXLDPI | 640 | The pixel density of the screen is 'xxxldpi'.| 56