• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ElementName
2
3The **ElementName** module provides element name information, which can be obtained through [Context.getElementName](js-apis-inner-app-context.md).
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## ElementName<sup>(deprecated)</sup>
10
11> This API is deprecated since API version 9. You are advised to use [bundleManager-ElementName](js-apis-bundleManager-elementName.md) instead.
12
13Describes the element name information, which identifies the basic information about an ability and is obtained through [Context.getElementName](js-apis-inner-app-context.md).
14
15**System capability**: SystemCapability.BundleManager.BundleFramework
16
17| Name                    | Type    | Readable| Writable| Description                      |
18| ----------------------- | ---------| ---- | ---- | ------------------------- |
19| deviceId                | string   | Yes  | Yes  | Device ID.                  |
20| bundleName              | string   | Yes  | Yes  | Bundle name.         |
21| abilityName             | string   | Yes  | Yes  | Ability name.              |
22| uri                     | string   | Yes  | Yes  | Resource ID.                |
23| shortName               | string   | Yes  | Yes  | Short name of the ability.              |
24