1e41f4b71Sopenharmony_ci# application_context.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## 概述
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ci声明应用级别的上下文能力。
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**库:** libability_runtime.so
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.Ability.AbilityRuntime.Core
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**起始版本:** 13
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**相关模块:**[AbilityRuntime](_ability_runtime.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## 汇总
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci### 文件
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci| 名称                                                | 描述                                                         |
22e41f4b71Sopenharmony_ci| --------------------------------------------------- | ------------------------------------------------------------ |
23e41f4b71Sopenharmony_ci| [application_context.h](application__context_8h.md) | 声明应用级别的上下文能力。<br/>**引用文件**:<AbilityKit/ability_runtime/application_context.h><br/>**库**:libability_runtime.so |
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci### 函数
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci| 名称                                                         | 描述                         |
28e41f4b71Sopenharmony_ci| ------------------------------------------------------------ | ---------------------------- |
29e41f4b71Sopenharmony_ci| [AbilityRuntime_ErrorCode](_ability_runtime.md#abilityruntime_errorcode) [OH_AbilityRuntime_ApplicationContextGetCacheDir](_ability_runtime.md#oh_abilityruntime_applicationcontextgetcachedir)(char* buffer, int32_t bufferSize, int32_t* writeLength) | 获取应用级别的缓存目录。     |
30e41f4b71Sopenharmony_ci| [AbilityRuntime_ErrorCode](_ability_runtime.md#abilityruntime_errorcode) [OH_AbilityRuntime_ApplicationContextGetAreaMode](_ability_runtime.md#oh_abilityruntime_applicationcontextgetareamode)([AbilityRuntime_AreaMode](_ability_runtime.md#abilityruntime_areamode)* areaMode) | 获取应用级别的数据加密等级。 |
31e41f4b71Sopenharmony_ci| [AbilityRuntime_ErrorCode](_ability_runtime.md#abilityruntime_errorcode) [OH_AbilityRuntime_ApplicationContextGetBundleName](_ability_runtime.md#oh_abilityruntime_applicationcontextgetbundlename)(char* buffer, int32_t bufferSize, int32_t* writeLength) | 获取应用包名。               |