1e41f4b71Sopenharmony_ci# application_context.h
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ci## Overview
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ciThe **application_context.h** file declares the context capability at the application level.
7e41f4b71Sopenharmony_ci
8e41f4b71Sopenharmony_ci**Library**: libability_runtime.so
9e41f4b71Sopenharmony_ci
10e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityRuntime.Core
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci**Since**: 13
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci**Related module**: [AbilityRuntime](_ability_runtime.md)
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci## Summary
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci### Files
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci| Name                                               | Description                                                        |
22e41f4b71Sopenharmony_ci| --------------------------------------------------- | ------------------------------------------------------------ |
23e41f4b71Sopenharmony_ci| [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|
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci### Functions
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci| Name                                                        | Description                        |
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) | Obtains the application-level cache directory.    |
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) | Obtains the application-level data encryption level.|
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) | Obtains the bundle name of the application.              |
32