harmony 鸿蒙ExtensionAbilityInfo

2022-12-05 浏览 (772)

ExtensionAbilityInfo

The ExtensionAbilityInfo module defines the ExtensionAbility information. A system application can obtain its own or others' ExtensionAbility information through bundleManager.getBundleInfo. A third-party application can obtain its own ExtensionAbility information through getBundleInfoForSelf. The input parameter bundleFlags must be set to GET_BUNDLE_INFO_WITH_EXTENSION_ABILITY.

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.

ExtensionAbilityInfo

System capability: SystemCapability.BundleManager.BundleFramework.Core

NameTypeReadableWritableDescription
bundleNamestringYesNoBundle name.
moduleNamestringYesNoName of the HAP file to which the ExtensionAbility belongs.
namestringYesNoName of the ExtensionAbility.
labelIdnumberYesNoID of the ExtensionAbility label.
descriptionIdnumberYesNoID of the ExtensionAbility description.
iconIdnumberYesNoID of the ExtensionAbility icon.
exportedbooleanYesNoWhether the ExtensionAbility can be called by other bundles.
extensionAbilityTypeExtensionAbilityTypeYesNoType of the ExtensionAbility.
permissionsArray<string>YesNoPermissions required for other bundles to call the ExtensionAbility.
applicationInfoApplicationInfoYesNoApplication information.
metadataArray<Metadata>YesNoMetadata of the ExtensionAbility.
enabledbooleanYesNoWhether the ExtensionAbility is enabled.
readPermissionstringYesNoPermission required for reading data from the ExtensionAbility.
writePermissionstringYesNoPermission required for writing data to the ExtensionAbility.
extensionAbilityType11stringYesNoType of the ExtensionAbility.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙APIs

harmony 鸿蒙System Common Events (To Be Deprecated Soon)

harmony 鸿蒙System Common Events

harmony 鸿蒙API Reference Document Description

harmony 鸿蒙Enterprise Device Management Overview (for System Applications Only)

harmony 鸿蒙BundleStatusCallback

harmony 鸿蒙@ohos.bundle.innerBundleManager (innerBundleManager)

harmony 鸿蒙@ohos.distributedBundle (Distributed Bundle Management)

harmony 鸿蒙@ohos.bundle (Bundle)

harmony 鸿蒙@ohos.enterprise.EnterpriseAdminExtensionAbility (EnterpriseAdminExtensionAbility)

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/bb72f6e730e24808878dcdb2fa2d6b10