js-apis-bundle-ElementName.md 1.4 KB
Newer Older
W
wusongqing 已提交
1 2
# ElementName

3
The **ElementName** module provides element name information, which can be obtained through [Context.getElementName](js-apis-inner-app-context.md).
4

W
wusongqing 已提交
5 6 7 8
> **NOTE**
>
> 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.

9
## ElementName<sup>(deprecated)</sup>
W
wusongqing 已提交
10

11 12 13
> This API is deprecated since API version 9. You are advised to use [bundleManager-ElementName](js-apis-bundleManager-elementName.md) instead.

Describes the element name information, which identifies the basic information about an ability and is obtained through [Context.getElementName](js-apis-inner-app-context.md).
G
Gloria 已提交
14

15
**System capability**: SystemCapability.BundleManager.BundleFramework
W
wusongqing 已提交
16 17 18

| Name                    | Type    | Readable| Writable| Description                      |
| ----------------------- | ---------| ---- | ---- | ------------------------- |
G
Gloria 已提交
19 20 21 22 23
| deviceId                | string   | Yes  | Yes  | Device ID.                  |
| bundleName              | string   | Yes  | Yes  | Bundle name of the application.                 |
| abilityName             | string   | Yes  | Yes  | Name of the ability.              |
| uri                     | string   | Yes  | Yes  | Resource ID.                |
| shortName               | string   | Yes  | Yes  | Short name of the ability.              |