• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Update Subsystem
2
3The table below lists the APIs changes of the update subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.update | Order                | INSTALL_AND_APPLY = 6                                                                                                                                                                                                                                                                                                | Added|
10| ohos.update | Order                | DOWNLOAD_AND_INSTALL = 3                                                                                                                                                                                                                                                                                             | Added|
11| ohos.update | NetType              | CELLULAR_AND_WIFI = 7                                                                                                                                                                                                                                                                                                | Added|
12| ohos.update | NetType              | WIFI = 6                                                                                                                                                                                                                                                                                                             | Added|
13| ohos.update | DescriptionFormat    | SIMPLIFIED = 1                                                                                                                                                                                                                                                                                                       | Added|
14| ohos.update | DescriptionFormat    | STANDARD = 0                                                                                                                                                                                                                                                                                                         | Added|
15| ohos.update | ComponentDescription | descriptionInfo: DescriptionInfo;                                                                                                                                                                                                                                                                                    | Added|
16| ohos.update | ComponentDescription | componentId: string;                                                                                                                                                                                                                                                                                                 | Added|
17| ohos.update | DescriptionOptions   | language: string;                                                                                                                                                                                                                                                                                                    | Added|
18| ohos.update | DescriptionOptions   | format: DescriptionFormat;                                                                                                                                                                                                                                                                                           | Added|
19| ohos.update | VersionComponent     | componentId: string;                                                                                                                                                                                                                                                                                                 | Added|
20| ohos.update | Updater              | getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array\<ComponentDescription>>): void;<br>getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise<Array\<ComponentDescription>>;                                                                   | Added|
21| ohos.update | Updater              | getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array\<ComponentDescription>>): void;<br>getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions): Promise<Array\<ComponentDescription>>; | Added|
22| ohos.update | BusinessSubType | PARAM = 2 | Deleted|
23