• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# BundleInfo (System API)
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9The module defines the bundle information. Applications can obtain bundle information of a specific application through [bundleManager.getBundleInfo](js-apis-bundleManager.md#bundlemanagergetbundleinfo14), with [bundleFlags](js-apis-bundleManager.md#bundleflag) set to the information to be contained in the returned [BundleInfo](js-apis-bundleManager-bundleInfo.md).
10
11> **NOTE**
12>
13> The initial APIs of this module are supported since API version 20. Newly added APIs will be marked with a superscript to indicate their earliest API version.
14>
15> This topic describes only system APIs provided by the module. For details about its public APIs, see [BundleInfo](js-apis-bundleManager-bundleInfo.md).
16
17## Modules to Import
18
19```ts
20import { bundleManager } from '@kit.AbilityKit';
21```
22
23## DynamicIconInfo
24
25Describes the information about the dynamic icon of an application.
26
27**System capability**: SystemCapability.BundleManager.BundleFramework.Core
28
29**System API**: This is a system API.
30
31| Name     | Type          | Read-Only| Optional| Description                       |
32| --------- | -------------- | ---- | ---- | --------------------------- |
33| bundleName    | string    | Yes  | No  | Bundle name of the application associated with the dynamic icon.|
34| moduleName    | string    | Yes  | No  | Module name of the application associated with the dynamic icon.|
35| userId    | number    | Yes  | No  | User ID of the application associated with the dynamic icon.|
36| appIndex    | number    | Yes  | No  | Index of the application clone associated with the dynamic icon.|
37
38
39## BundleOptions
40
41Describes the bundle options used to set or query application information.
42
43**System capability**: SystemCapability.BundleManager.BundleFramework.Core
44
45**System API**: This is a system API.
46
47| Name     | Type          | Read-Only| Optional| Description               |
48| --------- | -------------- | ---- | ---- | ------------------- |
49| userId | number         | No  | Yes  | User ID. By default, the user is the current caller.            |
50| appIndex | number         | No  | Yes  | Index of an application clone. The default value is **0**, indicating the main application.   |
51