openharmony 鸿蒙 js-apidiff-update

2023-02-03 浏览 (673)

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

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.updateOrderINSTALL_AND_APPLY = 6Added
ohos.updateOrderDOWNLOAD_AND_INSTALL = 3Added
ohos.updateNetTypeCELLULAR_AND_WIFI = 7Added
ohos.updateNetTypeWIFI = 6Added
ohos.updateDescriptionFormatSIMPLIFIED = 1Added
ohos.updateDescriptionFormatSTANDARD = 0Added
ohos.updateComponentDescriptiondescriptionInfo: DescriptionInfo;Added
ohos.updateComponentDescriptioncomponentId: string;Added
ohos.updateDescriptionOptionslanguage: string;Added
ohos.updateDescriptionOptionsformat: DescriptionFormat;Added
ohos.updateVersionComponentcomponentId: string;Added
ohos.updateUpdatergetCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array<ComponentDescription>>): void;
getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise<Array<ComponentDescription>>;
Added
ohos.updateUpdatergetNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions, callback: AsyncCallback<Array<ComponentDescription>>): void;
getNewVersionDescription(versionDigestInfo: VersionDigestInfo, descriptionOptions: DescriptionOptions): Promise<Array<ComponentDescription>>;
Added
ohos.updateBusinessSubTypePARAM = 2Deleted

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apidiff-bundle

openharmony 鸿蒙 js-apidiff-event-and-notification

openharmony 鸿蒙 js-apidiff-battery

openharmony 鸿蒙 js-apidiff-multimedia

openharmony 鸿蒙 js-apidiff-account

openharmony 鸿蒙 js-apidiff-arkui

openharmony 鸿蒙 js-apidiff-distributed-data

openharmony 鸿蒙 js-apidiff-distributed-hardware

openharmony 鸿蒙 js-apidiff-window

openharmony 鸿蒙 js-apidiff-dfx

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/4249f8170b7844aeb411ef1223b5538c