1e41f4b71Sopenharmony_ci# ExtensionAbilityInfo 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe **ExtensionAbilityInfo** module defines the ExtensionAbility information. A third-party application can obtain its own ExtensionAbility information through [bundleManager.getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself), with **GET_BUNDLE_INFO_WITH_HAP_MODULE** and **GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY** passed in to [bundleFlags](js-apis-bundleManager.md#bundleflag). 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci> **NOTE** 6e41f4b71Sopenharmony_ci> 7e41f4b71Sopenharmony_ci> 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. 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci## ExtensionAbilityInfo 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ci**Atomic service API**: This API can be used in atomic services since API version 11. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**System capability**: SystemCapability.BundleManager.BundleFramework.Core 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci| Name | Type | Read-Only| Optional| Description | 16e41f4b71Sopenharmony_ci| -------------------- | ------------------------------------------------------------ | ---- | ---- | ---------------------------------------------------- | 17e41f4b71Sopenharmony_ci| bundleName | string | Yes | No | Bundle name. | 18e41f4b71Sopenharmony_ci| moduleName | string | Yes | No | Name of the HAP file to which the ExtensionAbility belongs. | 19e41f4b71Sopenharmony_ci| name | string | Yes | No | Name of the ExtensionAbility. | 20e41f4b71Sopenharmony_ci| labelId | number | Yes | No | ID of the ExtensionAbility label. | 21e41f4b71Sopenharmony_ci| descriptionId | number | Yes | No | ID of the ExtensionAbility description. | 22e41f4b71Sopenharmony_ci| iconId | number | Yes | No | ID of the ExtensionAbility icon. | 23e41f4b71Sopenharmony_ci| exported | boolean | Yes | No | Whether the ExtensionAbility can be called by other bundles. | 24e41f4b71Sopenharmony_ci| extensionAbilityType | [ExtensionAbilityType](js-apis-bundleManager.md#extensionabilitytype) | Yes | No | Type of the ExtensionAbility. | 25e41f4b71Sopenharmony_ci| permissions | Array\<string> | Yes | No | Permissions required for other bundles to call the ExtensionAbility.| 26e41f4b71Sopenharmony_ci| applicationInfo | [ApplicationInfo](js-apis-bundleManager-applicationInfo.md) | Yes | No | Application information. The information can be obtained by passing in **GET_BUNDLE_INFO_WITH_HAP_MODULE**, **GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY**, and **GET_BUNDLE_INFO_WITH_APPLICATION** to the **bundleFlags** parameter of [getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself).| 27e41f4b71Sopenharmony_ci| metadata | Array\<[Metadata](js-apis-bundleManager-metadata.md)> | Yes | No | Metadata of the ExtensionAbility. The information can be obtained by passing in **GET_BUNDLE_INFO_WITH_HAP_MODULE**, **GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY**, and **GET_BUNDLE_INFO_WITH_METADATA** to the **bundleFlags** parameter of [getBundleInfoForSelf](js-apis-bundleManager.md#bundlemanagergetbundleinfoforself).| 28e41f4b71Sopenharmony_ci| enabled | boolean | Yes | No | Whether the ExtensionAbility is enabled. | 29e41f4b71Sopenharmony_ci| readPermission | string | Yes | No | Permission required for reading data from the ExtensionAbility. | 30e41f4b71Sopenharmony_ci| writePermission | string | Yes | No | Permission required for writing data to the ExtensionAbility. | 31e41f4b71Sopenharmony_ci| extensionAbilityTypeName<sup>11</sup> | string | Yes | No | Type of the ExtensionAbility. | 32e41f4b71Sopenharmony_ci| skills<sup>12+</sup> | Array\<[Skill](js-apis-bundleManager-skill.md)> | Yes | No | Skills of the ExtensionAbility. | 33e41f4b71Sopenharmony_ci| appIndex<sup>12+</sup> | number | Yes | No | Index of an application clone. It takes effect only for cloned applications.| 34