JS API Changes of the Update Subsystem
The table below lists the APIs changes of the update subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
API Changes
Module | Class | Method/Attribute/Enumeration/Constant | Change Type |
---|---|---|---|
ohos.update | Order | INSTALL_AND_APPLY = 6 | Added |
ohos.update | Order | DOWNLOAD_AND_INSTALL = 3 | Added |
ohos.update | NetType | CELLULAR_AND_WIFI = 7 | Added |
ohos.update | NetType | WIFI = 6 | Added |
ohos.update | DescriptionFormat | SIMPLIFIED = 1 | Added |
ohos.update | DescriptionFormat | STANDARD = 0 | Added |
ohos.update | ComponentDescription | descriptionInfo: DescriptionInfo; | Added |
ohos.update | ComponentDescription | componentId: string; | Added |
ohos.update | DescriptionOptions | language: string; | Added |
ohos.update | DescriptionOptions | format: DescriptionFormat; | Added |
ohos.update | VersionComponent | componentId: string; | Added |
ohos.update | Updater | getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array<ComponentDescription>>): void; getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise<Array<ComponentDescription>>; |
Added |
ohos.update | Updater | getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array<ComponentDescription>>): void; getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions): Promise<Array<ComponentDescription>>; |
Added |
ohos.update | BusinessSubType | PARAM = 2 | Deleted |