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

2022-10-28 浏览 (731)

Web子系统JS API变更

OpenHarmony 3.2 Beta3版本相较于OpenHarmony 3.2 Beta2版本,Web子系统的API变更如下:

接口变更

模块名类名方法/属性/枚举/常量变更类型
ohos.web.webviewWebCookieManagerstatic deleteSessionCookie(): void;新增
ohos.web.webviewWebCookieManagerstatic deleteEntireCookie(): void;新增
ohos.web.webviewWebCookieManagerstatic existCookie(): boolean;新增
ohos.web.webviewWebCookieManagerstatic putAcceptThirdPartyCookieEnabled(accept: boolean): void;新增
ohos.web.webviewWebCookieManagerstatic isThirdPartyCookieAllowed(): boolean;新增
ohos.web.webviewWebCookieManagerstatic putAcceptCookieEnabled(accept: boolean): void;新增
ohos.web.webviewWebCookieManagerstatic isCookieAllowed(): boolean;新增
ohos.web.webviewWebCookieManagerstatic saveCookieAsync(): Promise<boolean>;
static saveCookieAsync(callback: AsyncCallback<boolean>): void;
新增
ohos.web.webviewWebCookieManagerstatic saveCookieSync(): boolean;新增
ohos.web.webviewWebCookieManagerstatic setCookie(url: string, value: string): boolean;新增
ohos.web.webviewWebCookieManagerstatic getCookie(url: string): string;新增
ohos.web.webviewGeolocationPermissionsstatic getStoredGeolocation() : Promise<Array<string>>;
static getStoredGeolocation(callback : AsyncCallback<Array<string>>): void;
新增
ohos.web.webviewGeolocationPermissionsstatic getAccessibleGeolocation(origin: string): Promise<boolean>;
static getAccessibleGeolocation(origin: string, callback: AsyncCallback<boolean>): void;
新增
ohos.web.webviewGeolocationPermissionsstatic deleteAllGeolocation(): void;新增
ohos.web.webviewGeolocationPermissionsstatic deleteGeolocation(origin: string): void;新增
ohos.web.webviewGeolocationPermissionsstatic allowGeolocation(origin: string): void;新增
ohos.web.webviewWebAsyncControllerstoreWebArchive(baseName: string, autoName: boolean): Promise<string>;
storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback<string>): void;
新增
ohos.web.webviewWebAsyncControllerconstructor(controller: WebController);新增
ohos.web.webviewWebDataBasestatic saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;新增
ohos.web.webviewWebDataBasestatic getHttpAuthCredentials(host: string, realm: string): Array<string>;新增
ohos.web.webviewWebDataBasestatic deleteHttpAuthCredentials(): void;新增
ohos.web.webviewWebDataBasestatic existHttpAuthCredentials(): boolean;新增
ohos.web.webviewWebStoragestatic getOriginUsage(origin : string) : Promise<number> ;
static getOriginUsage(origin : string, callback : AsyncCallback<number>) : void;
新增
ohos.web.webviewWebStoragestatic getOriginQuota(origin : string) : Promise<number>;
static getOriginQuota(origin : string, callback : AsyncCallback<number>) : void;
新增
ohos.web.webviewWebStoragestatic getOrigins() : Promise<Array<WebStorageOrigin>>;
static getOrigins(callback: AsyncCallback<Array<WebStorageOrigin>>) : void;
新增
ohos.web.webviewWebStoragestatic deleteOrigin(origin : string): void;新增
ohos.web.webviewWebStoragestatic deleteAllData() : void;新增
ohos.web.webviewWebStorageOriginquota: number;新增
ohos.web.webviewWebStorageOriginusage: number;新增
ohos.web.webviewWebStorageOriginorigin: string;新增
ohos.webWebDataBasestatic saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;删除
ohos.webWebDataBasestatic getHttpAuthCredentials(host: string, realm: string): Array<string>;删除
ohos.webWebDataBasestatic deleteHttpAuthCredentials(): void;删除
ohos.webWebDataBasestatic existHttpAuthCredentials(): boolean;删除
ohos.webWebStoragestatic getOriginUsage(origin : string) : Promise<number> ;
static getOriginUsage(origin : string, callback : AsyncCallback<number>) : void;
删除
ohos.webWebStoragestatic getOriginQuota(origin : string) : Promise<number>;
static getOriginQuota(origin : string, callback : AsyncCallback<number>) : void;
删除
ohos.webWebStoragestatic getOrigins() : Promise<Array<WebStorageOrigin>>;
static getOrigins(callback: AsyncCallback<Array<WebStorageOrigin>>) : void;
删除
ohos.webWebStoragestatic deleteOrigin(origin : string): void;删除
ohos.webWebStoragestatic deleteAllData() : void;删除
ohos.webWebStorageOriginquota: number;删除
ohos.webWebStorageOriginusage: number;删除
ohos.webWebStorageOriginorigin: string;删除

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)3.2 beta3相对于3.2 beta2变更详细说明

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

harmony(鸿蒙)无障碍子系统JS API变更

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

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

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

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

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

harmony(鸿蒙)公共基础库子系统JS API变更

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