开源鸿蒙 JS API Changes of the Web Subsystem

2022-08-09 浏览 (771)

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

ModuleClassFunctionChange Type
webWebAttribute"onShowFileSelector(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => boolean): WebAttribute;"Added
webWebAttributewebDebuggingAccess(webDebuggingAccess: boolean): WebAttribute;Added
webWebAttributefileFromUrlAccess(fileFromUrlAccess: boolean): WebAttribute;Added
webWebControllergetCookieManager() : WebCookieAdded
webWebCookiedeleteExpiredCookie(): void;Added
webWebCookiedeleteSessionCookie(): void;Added
webWebCookiedeleteEntireCookie(): void;Added
webWebCookieexistCookie(): boolean;Added
webWebCookiegetCookie(url: string): string;Added
webWebCookiesaveCookieSync(): boolean;Added
webWebCookieputAcceptFileURICookieEnabled(accept: boolean): void;Added
webWebCookieputAcceptThirdPartyCookieEnabled(accept: boolean): void;Added
webWebCookieputAcceptCookieEnabled(accept: boolean): void;Added
webWebCookieisFileURICookieAllowed(): boolean;Added
webWebCookieisThirdPartyCookieAllowed(): boolean;Added
webWebCookieisCookieAllowed(): boolean;Added
webFileSelectorResulthandleFileList(fileList: Array<string>): void;Added
webFileSelectorResultconstructor();Added
webFileSelectorParamisCapture(): boolean;Added
webFileSelectorParamgetAcceptType(): Array<string>;Added
webFileSelectorParamgetMode(): FileSelectorMode;Added
webFileSelectorParamgetTitle(): string;Added
webFileSelectorParamconstructor();Added
webFileSelectorModeFileSaveModeAdded
webFileSelectorModeFileOpenFolderModeAdded
webFileSelectorModeFileOpenMultipleModeAdded
webFileSelectorModeFileOpenModeAdded
webRenderExitReasonProcessExitUnknownAdded
webRenderExitReasonProcessOomAdded
webRenderExitReasonProcessCrashedAdded
webRenderExitReasonProcessWasKilledAdded
webRenderExitReasonProcessAbnormalTerminationAdded
webCacheModeDefaultAdded
webWebAttributeonFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute;Deprecated
webWebAttributeonSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute;Deprecated
webWebAttributeonRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute;Deprecated
webWebCookiesaveCookie();Deprecated
webWebCookiesetCookie();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

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