• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# BundleResourceInfo (系统接口)
2<!--Kit: Ability Kit-->
3<!--Subsystem: BundleManager-->
4<!--Owner: @wanghang904-->
5<!--Designer: @hanfeng6-->
6<!--Tester: @kongjing2-->
7<!--Adviser: @Brilliantry_Rui-->
8
9应用配置的图标和名称信息,可以通过[getBundleResourceInfo](js-apis-bundleResourceManager-sys.md#bundleresourcemanagergetbundleresourceinfo)获取。
10
11> **说明:**
12>
13> 本模块首批接口从API version 11 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
14>
15> 本模块为系统接口。
16
17## 导入模块
18
19```ts
20import { bundleResourceManager } from '@kit.AbilityKit';
21```
22
23## BundleResourceInfo
24
25**系统能力:** SystemCapability.BundleManager.BundleFramework.Resource
26
27**系统接口:** 此接口为系统接口。
28
29| 名称                      | 类型   | 只读 | 可选 | 说明                 |
30| ------------------------- | ------ | ---- | ---- | -------------------- |
31| bundleName              | string | 是   | 否   | 应用的包名。 |
32| icon              | string | 是   | 否   | 应用图标,为Base64编码格式。  |
33| label                     | string | 是   | 否   | 应用名称。 |
34| drawableDescriptor<sup>12+</sup>                     | [DrawableDescriptor](../apis-arkui/js-apis-arkui-drawableDescriptor-sys.md) | 是   | 否   | 应用图标的drawableDescriptor对象。 |
35| appIndex<sup>12+</sup>           | number | 是   | 否   | 应用分身Id。 |
36