1e41f4b71Sopenharmony_ci# @ohos.app.ability.common (Context)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciYou can use this module to reference the ability public module class.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **NOTE**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci## Modules to Import
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci```ts
12e41f4b71Sopenharmony_ciimport { common } from '@kit.AbilityKit';
13e41f4b71Sopenharmony_ci```
14e41f4b71Sopenharmony_ci## Properties
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci**System capability**: SystemCapability.Ability.AbilityRuntime.Core
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci| Name| Type| Read Only| Optional| Description       |
19e41f4b71Sopenharmony_ci| ---- | ---- | ---- | ---- | ---------- |
20e41f4b71Sopenharmony_ci| UIAbilityContext    | [UIAbilityContext](js-apis-inner-application-uiAbilityContext.md) | No | No | Level-2 module **UIAbilityContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.                               |
21e41f4b71Sopenharmony_ci| AbilityStageContext   | [AbilityStageContext](js-apis-inner-application-abilityStageContext.md) | No | No | Level-2 module **AbilityStageContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
22e41f4b71Sopenharmony_ci| ApplicationContext   | [ApplicationContext](js-apis-inner-application-applicationContext.md) | No | No | Level-2 module **ApplicationContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
23e41f4b71Sopenharmony_ci| BaseContext   | [BaseContext](js-apis-inner-application-baseContext.md) | No | No | Level-2 module **BaseContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
24e41f4b71Sopenharmony_ci| Context   | [Context](js-apis-inner-application-context.md) | No | No | Level-2 module **Context**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
25e41f4b71Sopenharmony_ci| ExtensionContext   | [ExtensionContext](js-apis-inner-application-extensionContext.md) | No | No | Level-2 module **ExtensionContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
26e41f4b71Sopenharmony_ci| FormExtensionContext   | [FormExtensionContext](../apis-form-kit/js-apis-inner-application-formExtensionContext.md) | No | No | Level-2 module **FormExtensionContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
27e41f4b71Sopenharmony_ci| VpnExtensionContext<sup>11+<sup> | VpnExtensionContext  | No | No | Level-2 module **VpnExtensionContext**.<br>**Model restriction**: This API can be used only in the stage model.|
28e41f4b71Sopenharmony_ci| EventHub   | [EventHub](js-apis-inner-application-eventHub.md)  | No | No | Level-2 module **EventHub**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
29e41f4b71Sopenharmony_ci| PacMap   | [PacMap](js-apis-inner-ability-dataAbilityHelper.md#pacmap) | No | No | Level-2 module **PacMap**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.|
30e41f4b71Sopenharmony_ci| AbilityResult   | [AbilityResult](js-apis-inner-ability-abilityResult.md) | No | No | Level-2 module **AbilityResult**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
31e41f4b71Sopenharmony_ci| AbilityStartCallback<sup>11+<sup>   | [AbilityStartCallback](js-apis-inner-application-abilityStartCallback.md) | No | No | Level-2 module **AbilityStartCallback**.<br>**Atomic service API**: This API can be used in atomic services since API version 11.<br>**Model restriction**: This API can be used only in the stage model.|
32e41f4b71Sopenharmony_ci| ConnectOptions   | [ConnectOptions](js-apis-inner-ability-connectOptions.md) | No | No | Level-2 module **ConnectOptions**.<br>**Model restriction**: This API can be used only in the stage model.|
33e41f4b71Sopenharmony_ci| EmbeddableUIAbilityContext<sup>12+<sup>   | [EmbeddableUIAbilityContext](js-apis-inner-application-EmbeddableUIAbilityContext.md) | No | No | Level-2 module **EmbeddableUIAbilityContext**.<br>**Atomic service API**: This API can be used in atomic services since API version 12.<br>**Model restriction**: This API can be used only in the stage model.|
34e41f4b71Sopenharmony_ci| UIServiceProxy <sup>13+<sup> | [UIServiceProxy ](js-apis-inner-application-uiserviceproxy.md) | No | No | Level-2 module **UIServiceProxy**.<br>**Atomic service API**: This API can be used in atomic services since API version 13.<br>**Model restriction**: This API can be used only in the stage model.|
35e41f4b71Sopenharmony_ci| UIServiceExtensionConnectCallback  <sup>13+<sup> | [UIServiceExtensionConnectCallback](js-apis-inner-application-uiServiceExtensionconnectcallback.md) | No | No | Level-2 module **UIServiceExtensionConnectCallback**.<br>**Atomic service API**: This API can be used in atomic services since API version 13.<br>**Model restriction**: This API can be used only in the stage model.|
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci**Example**
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci```ts
40e41f4b71Sopenharmony_ciimport { common } from '@kit.AbilityKit';
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_cilet uiAbilityContext: common.UIAbilityContext;
43e41f4b71Sopenharmony_cilet abilityStageContext: common.AbilityStageContext;
44e41f4b71Sopenharmony_cilet applicationContext: common.ApplicationContext;
45e41f4b71Sopenharmony_cilet baseContext: common.BaseContext;
46e41f4b71Sopenharmony_cilet context: common.Context;
47e41f4b71Sopenharmony_cilet extensionContext: common.ExtensionContext;
48e41f4b71Sopenharmony_cilet formExtensionContext: common.FormExtensionContext;
49e41f4b71Sopenharmony_cilet vpnExtensionContext: common.VpnExtensionContext;
50e41f4b71Sopenharmony_cilet eventHub: common.EventHub;
51e41f4b71Sopenharmony_cilet pacMap: common.PacMap;
52e41f4b71Sopenharmony_cilet abilityResult: common.AbilityResult;
53e41f4b71Sopenharmony_cilet abilityStartCallback: common.AbilityStartCallback;
54e41f4b71Sopenharmony_cilet connectOptions: common.ConnectOptions;
55e41f4b71Sopenharmony_cilet embeddableUIAbilityContext: common.EmbeddableUIAbilityContext;
56e41f4b71Sopenharmony_cilet uiServiceProxy : common.UIServiceProxy;
57e41f4b71Sopenharmony_cilet uiServiceExtensionConnectCallback : common.UIServiceExtensionConnectCallback;
58e41f4b71Sopenharmony_ci```
59