1e41f4b71Sopenharmony_ci# BundlePackInfo (系统接口)
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci应用包信息,通过接口[freeInstall.getBundlePackInfo](js-apis-freeInstall-sys.md#getbundlepackinfo)获取。
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci> **说明:**
6e41f4b71Sopenharmony_ci>
7e41f4b71Sopenharmony_ci> 本模块首批接口从API version 9 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8e41f4b71Sopenharmony_ci>
9e41f4b71Sopenharmony_ci> 本模块为系统接口。
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ci## BundlePackInfo
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci
18e41f4b71Sopenharmony_ci| 名称     | 类型                                    | 只读 | 可选 | 说明                      |
19e41f4b71Sopenharmony_ci| -------- | --------------------------------------- | ---- | ---- | ------------------------- |
20e41f4b71Sopenharmony_ci| packages | Array\<[PackageConfig](#packageconfig)> | 是   | 否   | pack.info的包信息。       |
21e41f4b71Sopenharmony_ci| summary  | [PackageSummary](#packagesummary)       | 是   | 否   | pack.info中的包摘要信息。 |
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ci## PackageConfig
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci| 名称                | 类型           | 只读 | 可选 | 说明                                                         |
30e41f4b71Sopenharmony_ci| ------------------- | -------------- | ---- | ---- | ------------------------------------------------------------ |
31e41f4b71Sopenharmony_ci| deviceTypes          | Array\<string> | 是   | 否   | 包支持的设备类型。                                       |
32e41f4b71Sopenharmony_ci| name                | string         | 是   | 否   | 包的名称。                                                   |
33e41f4b71Sopenharmony_ci| moduleType          | string         | 是   | 否   | 包的module类型。                                             |
34e41f4b71Sopenharmony_ci| deliveryWithInstall | boolean        | 是   | 否   | 是否在用户主动安装的时候安装,true表示主动安装时安装,false表示主动安装时不安装。 |
35e41f4b71Sopenharmony_ci
36e41f4b71Sopenharmony_ci## PackageSummary
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci| 名称    | 类型                                          | 只读 | 可选 | 说明                 |
43e41f4b71Sopenharmony_ci| ------- | --------------------------------------------- | ---- | ---- | -------------------- |
44e41f4b71Sopenharmony_ci| app     | [BundleConfigInfo](#bundleconfiginfo)         | 是   | 否   | 包的配置信息。       |
45e41f4b71Sopenharmony_ci| modules | Array\<[ModuleConfigInfo](#moduleconfiginfo)> | 是   | 否   | 包的module配置信息。 |
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ci## BundleConfigInfo
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci| 名称       | 类型                | 只读 | 可选 | 说明                                   |
54e41f4b71Sopenharmony_ci| ---------- | ------------------- | ---- | ---- | -------------------------------------- |
55e41f4b71Sopenharmony_ci| bundleName | string              | 是   | 否   | 应用Bundle名称,用于标识应用的唯一性。 |
56e41f4b71Sopenharmony_ci| version    | [Version](#version) | 是   | 否   | 包的版本。                             |
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci## ModuleConfigInfo
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
61e41f4b71Sopenharmony_ci
62e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci| 名称               | 类型                                              | 只读 | 可选 | 说明                               |
65e41f4b71Sopenharmony_ci| ------------------ | ------------------------------------------------- | ---- | ---- | ---------------------------------- |
66e41f4b71Sopenharmony_ci| mainAbility | string | 是 | 否 | 应用主ability的名称。 |
67e41f4b71Sopenharmony_ci| apiVersion         | [ApiVersion](#apiversion)                         | 是   | 否   | module的api版本。                  |
68e41f4b71Sopenharmony_ci| deviceTypes         | Array\<string>                                    | 是   | 否   | module的设备类型。                 |
69e41f4b71Sopenharmony_ci| distro             | [ModuleDistroInfo](#moduledistroinfo)             | 是   | 否   | module发行版信息。                 |
70e41f4b71Sopenharmony_ci| abilities          | Array\<[ModuleAbilityInfo](#moduleabilityinfo)>   | 是   | 否   | module包含的ability组件信息。               |
71e41f4b71Sopenharmony_ci| extensionAbilities | Array\<[ExtensionAbility](#extensionability)> | 是   | 否   | 描述extensionAbilities的配置信息。 |
72e41f4b71Sopenharmony_ci
73e41f4b71Sopenharmony_ci## ModuleDistroInfo
74e41f4b71Sopenharmony_ci
75e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
76e41f4b71Sopenharmony_ci
77e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
78e41f4b71Sopenharmony_ci
79e41f4b71Sopenharmony_ci| 名称                | 类型    | 只读 | 可选 | 说明                                                         |
80e41f4b71Sopenharmony_ci| ------------------- | ------- | ---- | ---- | ------------------------------------------------------------ |
81e41f4b71Sopenharmony_ci| deliveryWithInstall | boolean | 是   | 否   | 是否在用户主动安装的时候安装,true表示主动安装时安装,false表示主动安装时不安装。 |
82e41f4b71Sopenharmony_ci| installationFree    | boolean | 是   | 否   | 表示当前HAP是否支持免安装特性。true表示支持免安装特性,且符合免安装约束,false表示不支持免安装特性。 |
83e41f4b71Sopenharmony_ci| moduleName          | string  | 是   | 否   | module名称。                                                 |
84e41f4b71Sopenharmony_ci| moduleType          | string  | 是   | 否   | module类型。                                                 |
85e41f4b71Sopenharmony_ci
86e41f4b71Sopenharmony_ci## ModuleAbilityInfo
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
91e41f4b71Sopenharmony_ci
92e41f4b71Sopenharmony_ci| 名称    | 类型                                        | 只读 | 可选 | 说明                                                         |
93e41f4b71Sopenharmony_ci| ------- | ------------------------------------------- | ---- | ---- | ------------------------------------------------------------ |
94e41f4b71Sopenharmony_ci| name    | string                                      | 是   | 否   | 表示当前ability的名称,该名称在整个应用要唯一。            |
95e41f4b71Sopenharmony_ci| label   | string                                      | 是   | 否   | 表示ability对用户显示的名称,标签值配置为该名称的资源索引以支持多语言。 |
96e41f4b71Sopenharmony_ci| exported | boolean                                     | 是   | 否   | 表示ability是否可以被其它应用调用,true表示可以被其它应用调用,false表示不可以被其它应用调用。 |
97e41f4b71Sopenharmony_ci| forms   | Array\<[AbilityFormInfo](#abilityforminfo)> | 是   | 否   | 卡片信息。                                                   |
98e41f4b71Sopenharmony_ci
99e41f4b71Sopenharmony_ci## ExtensionAbility
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
104e41f4b71Sopenharmony_ci
105e41f4b71Sopenharmony_ci| 名称  | 类型                                        | 只读 | 可选 | 说明                                                         |
106e41f4b71Sopenharmony_ci| ----- | ------------------------------------------- | ---- | ---- | ------------------------------------------------------------ |
107e41f4b71Sopenharmony_ci| name | string | 是 | 否 | 表示该ExtensionAbility的名称 |
108e41f4b71Sopenharmony_ci| forms | Array\<[AbilityFormInfo](#abilityforminfo)> | 是   | 否   | 表示form卡片的规格,form卡片是可以嵌入桌面上并接收定时更新的应用简要视图。 |
109e41f4b71Sopenharmony_ci
110e41f4b71Sopenharmony_ci## AbilityFormInfo
111e41f4b71Sopenharmony_ci
112e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
113e41f4b71Sopenharmony_ci
114e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
115e41f4b71Sopenharmony_ci
116e41f4b71Sopenharmony_ci| 名称                | 类型           | 只读 | 可选 | 说明                                                         |
117e41f4b71Sopenharmony_ci| ------------------- | -------------- | ---- | ---- | ------------------------------------------------------------ |
118e41f4b71Sopenharmony_ci| name                | string         | 是   | 否   | 表示forms的名称。                                            |
119e41f4b71Sopenharmony_ci| type                | string         | 是   | 否   | 表示forms的类型。                                            |
120e41f4b71Sopenharmony_ci| updateEnabled       | boolean        | 是   | 否   | 表示该卡片是否支持定时刷新,true表示卡片支持定时刷新,false表示不支持。 |
121e41f4b71Sopenharmony_ci| scheduledUpdateTime | string         | 是   | 否   | 表示卡片定点刷新的时间,采用24小时计数,精确到分钟。         |
122e41f4b71Sopenharmony_ci| updateDuration      | number         | 是   | 否   | 表示卡片定时刷新的更新频率,单位为30分钟,取值为30的倍数值。卡片的最高频率为每30分钟刷新一次,和定点刷新二选一,二者都配置的情况下,定时优先。 |
123e41f4b71Sopenharmony_ci| supportDimensions   | Array\<string> | 是   | 否   | 表示卡片外观规格,取值为“1\*2”,“2\*2”,“2\*4”,“4\*4”,定义卡片时至少要指定一个卡片规格。 |
124e41f4b71Sopenharmony_ci| defaultDimension    | string         | 是   | 否   | 表示卡片默认外观规格,取值必须在supportDimensions配置的列表中。 |
125e41f4b71Sopenharmony_ci
126e41f4b71Sopenharmony_ci## ApiVersion
127e41f4b71Sopenharmony_ci
128e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
129e41f4b71Sopenharmony_ci
130e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
131e41f4b71Sopenharmony_ci
132e41f4b71Sopenharmony_ci| 名称        | 类型   | 只读 | 可选 | 说明                 |
133e41f4b71Sopenharmony_ci| ----------- | ------ | ---- | ---- | -------------------- |
134e41f4b71Sopenharmony_ci| releaseType | string | 是   | 否   | 版本的名称。         |
135e41f4b71Sopenharmony_ci| compatible  | number | 是   | 否   | 版本的最小兼容代码。 |
136e41f4b71Sopenharmony_ci| target      | number | 是   | 否   | 目标版本号。         |
137e41f4b71Sopenharmony_ci
138e41f4b71Sopenharmony_ci## Version
139e41f4b71Sopenharmony_ci
140e41f4b71Sopenharmony_ci**系统接口:** 此接口为系统接口。
141e41f4b71Sopenharmony_ci
142e41f4b71Sopenharmony_ci**系统能力:** SystemCapability.BundleManager.BundleFramework.FreeInstall
143e41f4b71Sopenharmony_ci
144e41f4b71Sopenharmony_ci| 名称                     | 类型   | 只读 | 可选 | 说明                                                         |
145e41f4b71Sopenharmony_ci| ------------------------ | ------ | ---- | ---- | ------------------------------------------------------------ |
146e41f4b71Sopenharmony_ci| minCompatibleVersionCode | number | 是   | 否   | 能够兼容的最低历史版本号,用于跨设备兼容性判断。该值为32位整型数值,非负整数。 |
147e41f4b71Sopenharmony_ci| name                     | string | 是   | 否   | 标识版本号的文字描述,用于向用户展示。                       |
148e41f4b71Sopenharmony_ci| code                     | number | 是   | 否   | 标识应用的版本号,值为32位非负整数。此数字仅用于确定某个版本是否比另一个版本更新,数值越大表示版本越高。 |
149