• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ExtensionAbilityInfo
2
3> **NOTE**
4>
5> The initial APIs of this module are supported since API version 9. API version 9 is a canary version for trial use. The APIs of this version may be unstable.
6
7## Modules to Import
8```js
9import bundle from "@ohos.bundle";
10```
11
12
13## AbilityInfo
14
15Provides the ability information.
16
17**System capability**: SystemCapability.Ability.AbilityRuntime.Core
18
19| Name                   | Type                   | Readable  | Writable  | Description                      |
20| --------------------- | --------------------- | ---- | ---- | ------------------------ |
21| bundleName            | string                | Yes   | No   | Bundle name of the application.                    |
22| moduleName            | string                | Yes   | No   | Name of the HAP file to which the ability belongs.       |
23| name                  | string                | Yes   | No   | Ability name.               |
24| labelId               | number                | Yes   | No   | Ability label ID.            |
25| descriptionId         | number                | Yes   | No   | Ability description ID.            |
26| iconId                | number                | Yes   | No   | Ability icon ID.            |
27| isVisible             | boolean               | Yes   | No   | Whether the ability can be called by other applications.    |
28| extensionAbilityType  | bundle.ExtensionAbilityType | Yes  | No  | Type of the Extension ability.     |
29| permissions           | Array\<string>        | Yes   | No   | Permissions required for other applications to call the ability.|
30| applicationInfo       | ApplicationInfo       | Yes   | No   | Application configuration information.               |
31| metaData              | Array\<Metadata>      | Yes   | No   | Metadata of the ability.             |
32| enabled               | boolean               | Yes   | No   | Whether the ability is enabled.             |
33| readPermission        | string                | Yes   | No   | Permission required for reading the ability data.        |
34| writePermission       | string                | Yes   | No   | Permission required for writing data to the ability.        |
35