1# application_context.h 2 3 4## Overview 5 6The **application_context.h** file declares the context capability at the application level. 7 8**Library**: libability_runtime.so 9 10**System capability**: SystemCapability.Ability.AbilityRuntime.Core 11 12**Since**: 13 13 14**Related module**: [AbilityRuntime](_ability_runtime.md) 15 16 17## Summary 18 19### Files 20 21| Name | Description | 22| --------------------------------------------------- | ------------------------------------------------------------ | 23| [application_context.h](application__context_8h.md) | Declares the context capability at the application level.<br>**File to include**: <AbilityKit/ability_runtime/application_context.h><br>**Library**: libability_runtime.so| 24 25### Functions 26 27| Name | Description | 28| ------------------------------------------------------------ | ---------------------------- | 29| [AbilityRuntime_ErrorCode](_ability_runtime.md#abilityruntime_errorcode) [OH_AbilityRuntime_ApplicationContextGetCacheDir](_ability_runtime.md#oh_abilityruntime_applicationcontextgetcachedir)(char* buffer, int32_t bufferSize, int32_t* writeLength) | Obtains the application-level cache directory. | 30| [AbilityRuntime_ErrorCode](_ability_runtime.md#abilityruntime_errorcode) [OH_AbilityRuntime_ApplicationContextGetAreaMode](_ability_runtime.md#oh_abilityruntime_applicationcontextgetareamode)([AbilityRuntime_AreaMode](_ability_runtime.md#abilityruntime_areamode)* areaMode) | Obtains the application-level data encryption level.| 31| [AbilityRuntime_ErrorCode](_ability_runtime.md#abilityruntime_errorcode) [OH_AbilityRuntime_ApplicationContextGetBundleName](_ability_runtime.md#oh_abilityruntime_applicationcontextgetbundlename)(char* buffer, int32_t bufferSize, int32_t* writeLength) | Obtains the bundle name of the application. | 32