harmony 鸿蒙JS API Changes of the Update Subsystem

  • 2023-02-03
  • 浏览 (556)

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>): void;
getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise>;
Added
ohos.update Updater getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions, callback: AsyncCallback>): void;
getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions): Promise>;
Added
ohos.update BusinessSubType PARAM = 2 Deleted

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Readme

harmony 鸿蒙JS API Changes of the Ability Framework

harmony 鸿蒙JS API Changes of the Accessibility Subsystem

harmony 鸿蒙JS API Changes of the Account Subsystem

harmony 鸿蒙JS API Changes of the ArkUI Development Framework

harmony 鸿蒙JS API Changes of the Power Management Subsystem

harmony 鸿蒙JS API Changes of the Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

0  赞