• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 包管理子系统JS API变更
2
3OpenHarmony 3.2 Canary1版本相较于OpenHarmony 3.1 Release版本,包管理子系统的API变更如下:
4
5## 接口变更
6
7| 模块名 | 类名 | 方法/属性/枚举/常量 | 变更类型 |
8|---|---|---|---|
9| bundleInfo | BundleInfo | readonly extensionAbilityInfo: Array\<ExtensionAbilityInfo>; | 新增 |
10| hapModuleInfo | HapModuleInfo | readonly metadata: Array\<Metadata>; | 新增 |
11| hapModuleInfo | HapModuleInfo | readonly extensionAbilityInfo: Array\<ExtensionAbilityInfo>; | 新增 |
12| hapModuleInfo | HapModuleInfo | readonly mainElementName: string; | 新增 |
13| metadata | Metadata | resource: string; | 新增 |
14| metadata | Metadata | value: string; | 新增 |
15| metadata | Metadata | name: string; | 新增 |
16| ohos.bundle | bundle | queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId: number, callback: AsyncCallback\<Array\<ExtensionAbilityInfo>>): void;<br>queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, callback: AsyncCallback\<Array\<ExtensionAbilityInfo>>): void;<br>queryExtensionAbilityInfosByWant(want: Want, extensionFlags: number, userId?: number): Promise\<Array\<ExtensionAbilityInfo>>; | 新增 |
17| ohos.bundle | ExtensionAbilityType | UNSPECIFIED = 9 | 新增 |
18| ohos.bundle | ExtensionAbilityType | WALLPAPER = 8 | 新增 |
19| ohos.bundle | ExtensionAbilityType | STATIC_SUBSCRIBER = 7 | 新增 |
20| ohos.bundle | ExtensionAbilityType | FILE_SHARE = 6 | 新增 |
21| ohos.bundle | ExtensionAbilityType | DATA_SHARE = 5 | 新增 |
22| ohos.bundle | ExtensionAbilityType | ACCESSIBILITY = 4 | 新增 |
23| ohos.bundle | ExtensionAbilityType | SERVICE = 3 | 新增 |
24| ohos.bundle | ExtensionAbilityType | INPUT_METHOD = 2 | 新增 |
25| ohos.bundle | ExtensionAbilityType | WORK_SCHEDULER = 1 | 新增 |
26| ohos.bundle | ExtensionAbilityType | FORM = 0 | 新增 |
27| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_METADATA = 0x00000020 | 新增 |
28| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_APPLICATION = 0x00000004 | 新增 |
29| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_WITH_PERMISSION = 0x00000002 | 新增 |
30| ohos.bundle | ExtensionFlag | GET_EXTENSION_INFO_DEFAULT = 0x00000000 | 新增 |
31| ohos.bundle | BundleFlag | GET_BUNDLE_WITH_EXTENSION_ABILITY = 0x00000020 | 新增 |
32
33