• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SharedBundleInfo (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 information about the shared bundle. The information can be obtained by calling [bundleManager.getSharedBundleInfo](js-apis-bundleManager-sys.md#bundlemanagergetsharedbundleinfo10).
10
11> **NOTE**
12>
13> The initial APIs of this module are supported since API version 10. 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 { bundleManager } from '@kit.AbilityKit';
21```
22
23## SharedBundleInfo
24
25Defines the shared bundle information.
26
27**System API**: This is a system API.
28
29**System capability**: SystemCapability.BundleManager.BundleFramework.Core
30
31| Name            | Type                          | Read-Only| Optional| Description                  |
32| ---------------- | ------------------------------ | ---- | ---- | ---------------------- |
33| name             | string                         | Yes  | No  | Name of the shared bundle.      |
34| compatiblePolicy | bundleManager.[CompatiblePolicy](js-apis-bundleManager.md#compatiblepolicy10) | Yes  | No  | Compatibility type of the shared bundle.|
35| sharedModuleInfo | Array\<SharedModuleInfo>       | Yes  | No  | Information about the shared module.    |
36
37## SharedModuleInfo
38
39Defines the shared module information.
40
41**System API**: This is a system API.
42
43**System capability**: SystemCapability.BundleManager.BundleFramework.Core
44
45| Name         | Type  | Read-Only| Optional| Description                      |
46| ------------- | ------ | ---- | ---- | -------------------------- |
47| name          | string | Yes  | No  | Module name of the shared bundle.          |
48| versionCode   | number | Yes  | No  | Version number of the shared bundle.          |
49| versionName   | string | Yes  | No  | Version description of the shared bundle.|
50| description   | string | Yes  | No  | Description of the shared bundle.    |
51| descriptionId | number | Yes  | No  | Description ID of the shared bundle.    |
52