• 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
9A structured identifier for an application component, containing fields such as **bundleName**, **moduleName**, and **abilityName**. It is usually used in [AbilityRunningInfo.ability](../apis-ability-kit/js-apis-inner-application-abilityRunningInfo.md) for component launch information and in the [connectOptions.onConnect](../apis-ability-kit/js-apis-inner-ability-connectOptions.md#onconnect) callback for component connection.
10
11> **NOTE**
12>
13> 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.
14
15## Modules to Import
16
17```ts
18import { bundleManager } from '@kit.AbilityKit';
19```
20
21## ElementName
22
23**Atomic service API**: This API can be used in atomic services since API version 11.
24
25**System capability**: SystemCapability.BundleManager.BundleFramework.Core
26
27| Name                    | Type    | Read Only| Optional| Description                      |
28| ----------------------- | ---------| ---- | ---- | ------------------------- |
29| deviceId                | string   | No  |  Yes | Device ID.                  |
30| bundleName              | string   | No  |  No | Bundle name.         |
31| abilityName             | string   | No  |  No | Name of the ability.              |
32| uri                     | string   | No  |  Yes | Resource ID.                |
33| shortName               | string   | No  |  Yes | Short name of the ability. It is a string starting with a period (.).              |
34| moduleName              | string   | No  |  Yes | Module name of the HAP file to which the ability belongs.  |
35