js-apis-extension-context.md 802 字节

ExtensionContext

NOTE

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. The APIs of this module can be used only in the stage model.

Implements the extension context. This module is inherited from Context.

Modules to Import

import DataShareExtensionAbility from '@ohos.application.DataShareExtensionAbility';

Attributes

System capability: SystemCapability.Ability.AbilityRuntime.Core

Name Type Readable Writable Description
currentHapModuleInfo HapModuleInfo Yes No Information about the current HAP.
config Configuration Yes No Module configuration information.