ExtensionAbilityInfo

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.

API version 9 is a canary version for trial use. The APIs of this version may be unstable.

Provides the Extension ability information.

ExtensionAbilityInfo

System capability: SystemCapability.BundleManager.BundleFramework

Name Type Readable Writable Description
bundleName string Yes No Bundle name of the application.
moduleName string Yes No Name of the HAP file to which the Extension ability belongs.
name string Yes No Name of the Extension ability.
labelId number Yes No Label ID of the Extension ability.
descriptionId number Yes No Description ID of the Extension ability.
iconId number Yes No Icon ID of the Extension ability.
isVisible boolean Yes No Whether the Extension ability can be called by other applications.
extensionAbilityType bundle.ExtensionAbilityType Yes No Type of the Extension ability.
permissions Array<string> Yes No Permissions required for other applications to call the Extension ability.
applicationInfo ApplicationInfo Yes No Application information of the Extension ability.
metaData Array<Metadata> Yes No Metadata of the Extension ability.
enabled boolean Yes No Whether the Extension ability is enabled.
readPermission string Yes No Permission required for reading the Extension ability data.
writePermission string Yes No Permission required for writing data to the Extension ability.