js-apis-bundle-ExtensionAbilityInfo.md 2.9 KB
Newer Older
W
wusongqing 已提交
1 2 3 4
# ExtensionAbilityInfo



W
wusongqing 已提交
5 6
> **NOTE**
>
W
wusongqing 已提交
7 8 9 10 11 12
> 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.



Provides the Extension ability information.

W
wusongqing 已提交
13
## ExtensionAbilityInfo
W
wusongqing 已提交
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

**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](js-apis-bundle-ApplicationInfo.md) | Yes  | No  | Application information of the Extension ability.                                |
W
wusongqing 已提交
29
| metadata             | Array\<[Metadata](js-apis-bundle-Metadata.md)>       | Yes  | No  | Metadata of the Extension ability.                          |
W
wusongqing 已提交
30 31 32
| 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.                |