harmony 鸿蒙HapModuleInfo

2022-12-05 浏览 (842)

HapModuleInfo

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

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.

HapModuleInfo

System capability: SystemCapability.BundleManager.BundleFramework.Core

NameTypeReadableWritableDescription
namestringYesNoModule name.
iconstringYesNoModule icon.
iconIdnumberYesNoID of the module icon.
labelstringYesNoModule label.
labelIdnumberYesNoID of the module label.
descriptionstringYesNoModule description.
descriptionIdnumberYesNoID of the module description.
mainElementNamestringYesNoName of the main ability.
abilitiesInfoArray<AbilityInfo>YesNoAbility information.
extensionAbilitiesInfoArray<ExtensionAbilityInfo>YesNoExtensionAbility information.
metadataArray<Metadata>YesNoMetadata of the ability.
deviceTypesArray<string>YesNoTypes of devices where the module can run.
installationFreebooleanYesNoWhether installation-free is supported.
hashValuestringYesNoHash value of the module.
moduleTypeModuleTypeYesNoType of the module.
preloadsArray<PreloadItem>YesNoPreloaded modules in the atomic service.
dependenciesArray<Dependency>YesNoDynamic shared libraries on which the module depends.
fileContextMenustringYesNoShortcut menu configuration of the module.

PreloadItem

Describes the preloaded module information in the atomic service.

System capability: SystemCapability.BundleManager.BundleFramework.Core

NameTypeReadableWritableDescription
moduleNamestringYesNoName of the module automatically preloaded by the system.

Dependency

Describes the information about the dynamic shared library on which the module depends.

System capability: SystemCapability.BundleManager.BundleFramework.Core

NameTypeReadableWritableDescription
bundleNamestringYesNoName of the shared bundle on which the current module depends.
moduleNamestringYesNoModule name of the shared bundle on which the current module depends.
versionCodenumberYesNoVersion number of the shared bundle.

你可能感兴趣的鸿蒙文章

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/7be14677ca5d4f00a6066a0d947be263