• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ExtensionAbilityInfo
2
3The **ExtensionAbilityInfo** module provides Extension ability information. Unless otherwise specified, all attributes are obtained through **GET_BUNDLE_DEFAULT**.
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>  API version 9 is a canary version for trial use. The APIs of this version may be unstable.
10
11## ExtensionAbilityInfo
12
13**System capability**: SystemCapability.BundleManager.BundleFramework
14
15| Name                | Type                                                | Readable| Writable| Description                                              |
16| -------------------- | ---------------------------------------------------- | ---- | ---- | -------------------------------------------------- |
17| bundleName           | string                                               | Yes  | No  | Bundle name of the application.                                          |
18| moduleName           | string                                               | Yes  | No  | Name of the HAP file to which the Extension ability belongs.                 |
19| name                 | string                                               | Yes  | No  | Name of the Extension ability.                              |
20| labelId              | number                                               | Yes  | No  | Label ID of the Extension ability.                          |
21| descriptionId        | number                                               | Yes  | No  | Description ID of the Extension ability.                          |
22| iconId               | number                                               | Yes  | No  | Icon ID of the Extension ability.                          |
23| isVisible            | boolean                                              | Yes  | No  | Whether the Extension ability can be called by other applications.        |
24| extensionAbilityType | bundle.ExtensionAbilityType                          | Yes  | No  | Type of the Extension ability.                              |
25| permissions          | Array\<string>                                       | Yes  | No  | Permissions required for other applications to call the Extension ability.|
26| applicationInfo      | ApplicationInfo | Yes  | No  | Application information of the Extension ability.                                |
27| metadata             | Array\<[Metadata](js-apis-bundle-Metadata.md)>       | Yes  | No  | Metadata of the Extension ability.                          |
28| enabled              | boolean                                              | Yes  | No  | Whether the Extension ability is enabled.                          |
29| readPermission       | string                                               | Yes  | No  | Permission required for reading data from the Extension ability.                |
30| writePermission      | string                                               | Yes  | No  | Permission required for writing data to the Extension ability.                |
31