BundleInfo (System API)
The module defines the bundle information. Applications can obtain bundle information of a specific application through bundleManager.getBundleInfo, with bundleFlags set to the information to be contained in the returned BundleInfo.
NOTE
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.
This topic describes only system APIs provided by the module. For details about its public APIs, see BundleInfo.
Modules to Import
import { bundleManager } from '@kit.AbilityKit';
DynamicIconInfo
Describes the information about the dynamic icon of an application.
System capability: SystemCapability.BundleManager.BundleFramework.Core
System API: This is a system API.
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| bundleName | string | Yes | No | Bundle name of the application associated with the dynamic icon. |
| moduleName | string | Yes | No | Module name of the application associated with the dynamic icon. |
| userId | number | Yes | No | User ID of the application associated with the dynamic icon. |
| appIndex | number | Yes | No | Index of the application clone associated with the dynamic icon. |
BundleOptions
Describes the bundle options used to set or query application information.
System capability: SystemCapability.BundleManager.BundleFramework.Core
System API: This is a system API.
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| userId | number | No | Yes | User ID. By default, the user is the current caller. |
| appIndex | number | No | Yes | Index of an application clone. The default value is 0, indicating the main application. |
| bundleName23+ | string | No | Yes | Bundle name of the application. The default value is an empty string. |
| moduleName23+ | string | No | Yes | Module name to which the ability belongs. The default value is an empty string. |
| abilityName23+ | string | No | Yes | Ability name. The default value is an empty string. |