js-apis-bundleManager-metadata.md 1.2 KB
Newer Older
1 2
# Metadata

G
Gloria 已提交
3
The **Metadata** module provides a metadata object, which can be obtained through [bundleManager.getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo). This object is contained in [ApplicationInfo](js-apis-bundleManager-applicationInfo.md), [HapModuleInfo](js-apis-bundleManager-hapModuleInfo.md), [AbilityInfo](js-apis-bundleManager-abilityInfo.md), and [ExtensionAbilityInfo](js-apis-bundleManager-extensionAbilityInfo.md).
4 5

> **NOTE**
G
Gloria 已提交
6 7 8 9 10
>
> 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.
>
> The **Metadata** module provides the configuration about the module, UIAbility, and ExtensionAbility. The value is of the array type. The configuration is valid only for the current module, UIAbility, or ExtensionAbility.

11 12
## Metadata

G
Gloria 已提交
13
**System capability**: SystemCapability.BundleManager.BundleFramework.Core
14 15 16 17 18
| Name    | Type  | Readable| Writable| Description      |
| -------- | ------ | ---- | ---- | ---------- |
| name     | string | Yes  | Yes  | Metadata name.|
| value    | string | Yes  | Yes  | Metadata value.  |
| resource | string | Yes  | Yes  | Metadata resource.|