1# @ohos.app.ability.contextConstant (ContextConstant) 2 3ContextConstant提供Context相关的枚举,当前仅包含数据加密等级的枚举。 4 5> **说明:** 6> 7> 本模块首批接口从API version 9开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 8> 本模块接口仅可在Stage模型下使用。 9 10## 导入模块 11 12```ts 13import contextConstant from '@ohos.app.ability.contextConstant'; 14``` 15 16## ContextConstant.AreaMode 17 18使用时通过ContextConstant.AreaMode获取。 19 20**系统能力**:以下各项对应的系统能力均为SystemCapability.Ability.AbilityRuntime.Core 21 22| 名称 | 值 | 说明 | 23| -------- | -------- | -------- | 24| EL1 | 0 | 设备级加密区,设备开机后可访问的数据区。 | 25| EL2 | 1 | 用户级加密区,设备开机,首次输入密码后才能够访问的数据区。 | 26