• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ElementName
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The module provides element name information, which can be obtained through [Context.getElementName](js-apis-inner-app-context.md).
10
11> **NOTE**
12>
13> 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.
14>
15> The APIs of this module are deprecated since API version 9. You are advised to use [bundleManager-ElementName](js-apis-bundleManager-elementName.md) instead.
16
17## ElementName<sup>(deprecated)</sup>
18
19This API is deprecated since API version 9. You are advised to use [bundleManager-ElementName](js-apis-bundleManager-elementName.md#elementname-1) instead.
20
21Describes the element name information, which identifies the basic information about an ability and is obtained through [Context.getElementName](js-apis-inner-app-context.md).
22
23**System capability**: SystemCapability.BundleManager.BundleFramework
24
25| Name                    | Type    | Read-Only| Optional| Description                      |
26| ----------------------- | ---------| ---- | ---- | ------------------------- |
27| deviceId                | string   | No  | Yes  | Device ID.                  |
28| bundleName              | string   | No  | No | Bundle name.         |
29| abilityName             | string   | No  | No | Ability name.              |
30| uri                     | string   | No  | Yes | Resource ID.                |
31| shortName               | string   | No  | Yes | Short name of the ability.              |
32