• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SharedBundleInfo
2
3The **SharedBundleInfo** module provides information about the shared bundle. The information can be obtained by calling [bundleManager.getSharedBundleInfo](js-apis-bundleManager.md#bundlemanagergetsharedbundleinfo10).
4
5> **NOTE**
6>
7> 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.
8
9## SharedBundleInfo
10
11Defines the shared bundle information.
12
13**System API**: This is a system API.
14
15**System capability**: SystemCapability.BundleManager.BundleFramework.Core
16
17| Name            | Type                          | Readable| Writable| Description                  |
18| ---------------- | ------------------------------ | ---- | ---- | ---------------------- |
19| name             | string                         | Yes  | No  | Name of the shared bundle.      |
20| compatiblePolicy | bundleManager.CompatiblePolicy | Yes  | No  | Compatibility type of the shared bundle.|
21| sharedModuleInfo | Array\<SharedModuleInfo>       | Yes  | No  | Information about the shared module.    |
22
23## SharedModuleInfo
24
25Defines the shared module information.
26
27**System API**: This is a system API.
28
29**System capability**: SystemCapability.BundleManager.BundleFramework.Core
30
31| Name         | Type  | Readable| Writable| Description                      |
32| ------------- | ------ | ---- | ---- | -------------------------- |
33| name          | string | Yes  | No  | Module name of the shared bundle.          |
34| versionCode   | number | Yes  | No  | Version number of the shared bundle.          |
35| versionName   | string | Yes  | No  | Version description of the shared bundle.|
36| description   | string | Yes  | No  | Description of the shared bundle.    |
37| descriptionId | number | Yes  | No  | Description ID of the shared bundle.    |
38