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

G
Gloria 已提交
3
The **ElementName** module provides the element name information, which can be obtained through [Context.getElementName](js-apis-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

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

13
**System capability**: SystemCapability.BundleManager.BundleFramework
W
wusongqing 已提交
14 15 16

| Name                    | Type    | Readable| Writable| Description                      |
| ----------------------- | ---------| ---- | ---- | ------------------------- |
G
Gloria 已提交
17 18 19 20 21
| 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.              |