1# @ohos.app.ability.common (Context) 2 3You can use this module to reference the ability public module class. 4 5> **NOTE** 6> 7> 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. 8 9## Modules to Import 10 11```ts 12import { common } from '@kit.AbilityKit'; 13``` 14## Properties 15 16**System capability**: SystemCapability.Ability.AbilityRuntime.Core 17 18| Name| Type| Read Only| Optional| Description | 19| ---- | ---- | ---- | ---- | ---------- | 20| 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. | 21| 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.| 22| 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.| 23| 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.| 24| 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.| 25| 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.| 26| 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.| 27| VpnExtensionContext<sup>11+<sup> | VpnExtensionContext | No | No | Level-2 module **VpnExtensionContext**.<br>**Model restriction**: This API can be used only in the stage model.| 28| 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.| 29| 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.| 30| 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.| 31| 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.| 32| 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.| 33| 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.| 34| 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.| 35| 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.| 36 37**Example** 38 39```ts 40import { common } from '@kit.AbilityKit'; 41 42let uiAbilityContext: common.UIAbilityContext; 43let abilityStageContext: common.AbilityStageContext; 44let applicationContext: common.ApplicationContext; 45let baseContext: common.BaseContext; 46let context: common.Context; 47let extensionContext: common.ExtensionContext; 48let formExtensionContext: common.FormExtensionContext; 49let vpnExtensionContext: common.VpnExtensionContext; 50let eventHub: common.EventHub; 51let pacMap: common.PacMap; 52let abilityResult: common.AbilityResult; 53let abilityStartCallback: common.AbilityStartCallback; 54let connectOptions: common.ConnectOptions; 55let embeddableUIAbilityContext: common.EmbeddableUIAbilityContext; 56let uiServiceProxy : common.UIServiceProxy; 57let uiServiceExtensionConnectCallback : common.UIServiceExtensionConnectCallback; 58``` 59