• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# HapModuleInfo
2
3The **HapModuleInfo** module provides information about an HAP module. Unless otherwise specified, the information is obtained through [bundle.getBundleInfo](js-apis-Bundle.md#bundlegetbundleinfodeprecated).
4
5> **NOTE**
6>
7> The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8
9## HapModuleInfo<sup>(deprecated)<sup>
10
11> This API is deprecated since API version 9. You are advised to use [bundleManager-HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md) instead.
12
13**System capability**: SystemCapability.BundleManager.BundleFramework
14
15| Name                             | Type                                                        | Readable| Writable| Description                |
16| --------------------------------- | ------------------------------------------------------------ | ---- | ---- | -------------------- |
17| name                              | string                                                       | Yes  | No  | Module name.            |
18| description                       | string                                                       | Yes  | No  | Module description.        |
19| descriptionId                     | number                                                       | Yes  | No  | Module description ID.          |
20| icon                              | string                                                       | Yes  | No  | Module icon.            |
21| label                             | string                                                       | Yes  | No  | Module label.            |
22| labelId                           | number                                                       | Yes  | No  | Module label ID.          |
23| iconId                            | number                                                       | Yes  | No  | Module icon ID.          |
24| backgroundImg                     | string                                                       | Yes  | No  | Module background image.        |
25| supportedModes                    | number                                                       | Yes  | No  | Running modes supported by the module.      |
26| reqCapabilities                   | Array\<string>                                               | Yes  | No  | Capabilities required for module running.  |
27| deviceTypes                       | Array\<string>                                               | Yes  | No  | Device types supported by the module.  |
28| abilityInfo                       | Array\<[AbilityInfo](js-apis-bundle-AbilityInfo.md)>         | Yes  | No  | Ability information.         |
29| moduleName                        | string                                                       | Yes  | No  | Module name.              |
30| mainAbilityName                   | string                                                       | Yes  | No  | Name of the main ability.     |
31| installationFree                  | boolean                                                      | Yes  | No  | Whether installation-free is supported.      |
32