harmony(鸿蒙)ExtensionAbilityInfo

2022-08-09 浏览 (791)

ExtensionAbilityInfo

The ExtensionAbilityInfo module provides Extension ability information. Unless otherwise specified, all attributes are obtained through getBundleInfo, and flags are obtained through GET_BUNDLE_DEFAULT.

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

NameTypeReadableWritableDescription
bundleNamestringYesNoBundle name of the application.
moduleNamestringYesNoName of the HAP file to which the Extension ability belongs.
namestringYesNoName of the Extension ability.
labelIdnumberYesNoLabel ID of the Extension ability.
descriptionIdnumberYesNoDescription ID of the Extension ability.
iconIdnumberYesNoIcon ID of the Extension ability.
isVisiblebooleanYesNoWhether the Extension ability can be called by other applications.
extensionAbilityTypebundle.ExtensionAbilityTypeYesNoType of the Extension ability.
permissionsArray<string>YesNoPermissions required for other applications to call the Extension ability.
applicationInfoApplicationInfoYesNoApplication information of the Extension ability.
metadataArray<Metadata>YesNoMetadata of the Extension ability.
enabledbooleanYesNoWhether the Extension ability is enabled.
readPermissionstringYesNoPermission required for reading data from the Extension ability.
writePermissionstringYesNoPermission required for writing data to the Extension ability.

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)APIs

harmony(鸿蒙)API Reference Document Description

harmony(鸿蒙)BundleStatusCallback

harmony(鸿蒙)innerBundleManager

harmony(鸿蒙)distributedBundle

harmony(鸿蒙)Bundle

harmony(鸿蒙)Context

harmony(鸿蒙)DataUriUtils

harmony(鸿蒙)EnterpriseAdminExtensionAbility

harmony(鸿蒙)Work Scheduler Callbacks

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