开源鸿蒙 JS API Changes of the Web Subsystem

  • 2022-08-09
  • 浏览 (632)

JS API Changes of the Web Subsystem

The table below lists the APIs changes of the web subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.

API Changes

Module Class Function Change Type
web WebAttribute “onShowFileSelector(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => boolean): WebAttribute;” Added
web WebAttribute webDebuggingAccess(webDebuggingAccess: boolean): WebAttribute; Added
web WebAttribute fileFromUrlAccess(fileFromUrlAccess: boolean): WebAttribute; Added
web WebController getCookieManager() : WebCookie Added
web WebCookie deleteExpiredCookie(): void; Added
web WebCookie deleteSessionCookie(): void; Added
web WebCookie deleteEntireCookie(): void; Added
web WebCookie existCookie(): boolean; Added
web WebCookie getCookie(url: string): string; Added
web WebCookie saveCookieSync(): boolean; Added
web WebCookie putAcceptFileURICookieEnabled(accept: boolean): void; Added
web WebCookie putAcceptThirdPartyCookieEnabled(accept: boolean): void; Added
web WebCookie putAcceptCookieEnabled(accept: boolean): void; Added
web WebCookie isFileURICookieAllowed(): boolean; Added
web WebCookie isThirdPartyCookieAllowed(): boolean; Added
web WebCookie isCookieAllowed(): boolean; Added
web FileSelectorResult handleFileList(fileList: Array<string>): void; Added
web FileSelectorResult constructor(); Added
web FileSelectorParam isCapture(): boolean; Added
web FileSelectorParam getAcceptType(): Array<string>; Added
web FileSelectorParam getMode(): FileSelectorMode; Added
web FileSelectorParam getTitle(): string; Added
web FileSelectorParam constructor(); Added
web FileSelectorMode FileSaveMode Added
web FileSelectorMode FileOpenFolderMode Added
web FileSelectorMode FileOpenMultipleMode Added
web FileSelectorMode FileOpenMode Added
web RenderExitReason ProcessExitUnknown Added
web RenderExitReason ProcessOom Added
web RenderExitReason ProcessCrashed Added
web RenderExitReason ProcessWasKilled Added
web RenderExitReason ProcessAbnormalTermination Added
web CacheMode Default Added
web WebAttribute onFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute; Deprecated
web WebAttribute onSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute; Deprecated
web WebAttribute onRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute; Deprecated
web WebCookie saveCookie(); Deprecated
web WebCookie setCookie(); Deprecated

你可能感兴趣的文章

开源鸿蒙 JS API Changes of the Ability Framework

开源鸿蒙 JS API Changes of the ArkUI Development Framework

开源鸿蒙 JS API Changes of the Power Management Subsystem

开源鸿蒙 JS API Changes of the Bundle Management Framework

开源鸿蒙 JS API Changes of the Communication Subsystem

开源鸿蒙 JS API Changes of the DFX Subsystem

开源鸿蒙 JS API Changes of the Distributed Data Management Subsystem

开源鸿蒙 JS API Changes of the Distributed Scheduler Subsystem

开源鸿蒙 JS API Changes of the Common Event and Notification Subsystem

开源鸿蒙 JS API Changes of the File Management Subsystem

0  赞