harmony(鸿蒙)Web子系统JS API变更

2022-08-09 浏览 (872)

Web子系统JS API变更

OpenHarmony 3.2 Beta1版本相较于OpenHarmony 3.1 Release版本,Web子系统的API变更如下:

接口变更

模块名类名函数变更类型
webWebAttributeonShowFileSelector(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => boolean): WebAttribute;新增
webWebAttributewebDebuggingAccess(webDebuggingAccess: boolean): WebAttribute;新增
webWebAttributefileFromUrlAccess(fileFromUrlAccess: boolean): WebAttribute;新增
webWebAttributeonRenderExited(callback: (event?: { renderExitReason: RenderExitReason }) => void): WebAttribute;新增
webWebControllergetCookieManager() : WebCookie新增
webWebCookiedeleteExpiredCookie(): void;新增
webWebCookiedeleteSessionCookie(): void;新增
webWebCookiedeleteEntireCookie(): void;新增
webWebCookieexistCookie(): boolean;新增
webWebCookiegetCookie(url: string): string;新增
webWebCookiesaveCookieSync(): boolean;新增
webWebCookieputAcceptFileURICookieEnabled(accept: boolean): void;新增
webWebCookieputAcceptThirdPartyCookieEnabled(accept: boolean): void;新增
webWebCookieputAcceptCookieEnabled(accept: boolean): void;新增
webWebCookieisFileURICookieAllowed(): boolean;新增
webWebCookieisThirdPartyCookieAllowed(): boolean;新增
webWebCookieisCookieAllowed(): boolean;新增
webWebCookiesetCookie(url: string, value: string): boolean;新增
webFileSelectorResulthandleFileList(fileList: Array<string>): void;新增
webFileSelectorResultconstructor();新增
webFileSelectorParamisCapture(): boolean;新增
webFileSelectorParamgetAcceptType(): Array<string>;新增
webFileSelectorParamgetMode(): FileSelectorMode;新增
webFileSelectorParamgetTitle(): string;新增
webFileSelectorParamconstructor();新增
webFileSelectorModeFileSaveMode新增
webFileSelectorModeFileOpenFolderMode新增
webFileSelectorModeFileOpenMultipleMode新增
webFileSelectorModeFileOpenMode新增
webRenderExitReasonProcessExitUnknown新增
webRenderExitReasonProcessOom新增
webRenderExitReasonProcessCrashed新增
webRenderExitReasonProcessWasKilled新增
webRenderExitReasonProcessAbnormalTermination新增
webCacheModeDefault新增
webWebAttributeonFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute;废弃
webWebAttributeonSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute;废弃
webWebAttributeonRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute;废弃
webWebCookiesaveCookie();废弃
webWebCookiesetCookie();废弃

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)元能力子系统JS API变更

harmony(鸿蒙)ArkUI子系统JS API变更

harmony(鸿蒙)电源服务子系统JS API变更

harmony(鸿蒙)包管理子系统JS API变更

harmony(鸿蒙)基础通信子系统JS API变更

harmony(鸿蒙)DFX子系统JS API变更

harmony(鸿蒙)分布式数据管理子系统JS API变更

harmony(鸿蒙)事件通知子系统JS API变更

harmony(鸿蒙)文件管理子系统JS API变更

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