• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# BundleResourceInfo (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 provides resource information of an application, such as the icon and label. The information can be obtained by calling [getBundleResourceInfo](js-apis-bundleResourceManager-sys.md#bundleresourcemanagergetbundleresourceinfo).
10
11> **NOTE**
12>
13> The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.
14>
15> The APIs provided by this module are system APIs.
16
17## Modules to Import
18
19```ts
20import { bundleResourceManager } from '@kit.AbilityKit';
21```
22
23## BundleResourceInfo
24
25**System capability**: SystemCapability.BundleManager.BundleFramework.Resource
26
27**System API**: This is a system API.
28
29| Name                     | Type  | Read-Only| Optional| Description                |
30| ------------------------- | ------ | ---- | ---- | -------------------- |
31| bundleName              | string | Yes  | No  | Bundle name of the application.|
32| icon              | string | Yes  | No  | Application icon, which is encoded using Base64. |
33| label                     | string | Yes  | No  | Application label.|
34| drawableDescriptor<sup>12+</sup>                     | [DrawableDescriptor](../apis-arkui/js-apis-arkui-drawableDescriptor-sys.md) | Yes  | No  | drawableDescriptor object of the application icon.|
35| appIndex<sup>12+</sup>           | number | Yes  | No  | Index of an application clone.|
36