Configuration
NOTE 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.
Provides the configuration for the environment where the ability is running.
Modules to Import
import Configuration from '@ohos.application.Configuration';
Attributes
System capability: SystemCapability.Ability.AbilityBase
Name | Type | Readable | Writable | Description |
---|---|---|---|---|
language | string | Yes | Yes | Language of the application. |
colorMode | ColorMode | Yes | Yes | Color mode, which can be COLOR_MODE_LIGHT or COLOR_MODE_DARK. The default value is COLOR_MODE_LIGHT. |