harmony(鸿蒙)JS API Changes of the Web Subsystem

2022-10-28 浏览 (754)

JS API Changes of the Web Subsystem

The table below lists the APIs changes of the web subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.web.webviewWebCookieManagerstatic deleteSessionCookie(): void;Added
ohos.web.webviewWebCookieManagerstatic deleteEntireCookie(): void;Added
ohos.web.webviewWebCookieManagerstatic existCookie(): boolean;Added
ohos.web.webviewWebCookieManagerstatic putAcceptThirdPartyCookieEnabled(accept: boolean): void;Added
ohos.web.webviewWebCookieManagerstatic isThirdPartyCookieAllowed(): boolean;Added
ohos.web.webviewWebCookieManagerstatic putAcceptCookieEnabled(accept: boolean): void;Added
ohos.web.webviewWebCookieManagerstatic isCookieAllowed(): boolean;Added
ohos.web.webviewWebCookieManagerstatic saveCookieAsync(): Promise<boolean>;
static saveCookieAsync(callback: AsyncCallback<boolean>): void;
Added
ohos.web.webviewWebCookieManagerstatic saveCookieSync(): boolean;Added
ohos.web.webviewWebCookieManagerstatic setCookie(url: string, value: string): boolean;Added
ohos.web.webviewWebCookieManagerstatic getCookie(url: string): string;Added
ohos.web.webviewGeolocationPermissionsstatic getStoredGeolocation() : Promise<Array<string>>;
static getStoredGeolocation(callback : AsyncCallback<Array<string>>): void;
Added
ohos.web.webviewGeolocationPermissionsstatic getAccessibleGeolocation(origin: string): Promise<boolean>;
static getAccessibleGeolocation(origin: string, callback: AsyncCallback<boolean>): void;
Added
ohos.web.webviewGeolocationPermissionsstatic deleteAllGeolocation(): void;Added
ohos.web.webviewGeolocationPermissionsstatic deleteGeolocation(origin: string): void;Added
ohos.web.webviewGeolocationPermissionsstatic allowGeolocation(origin: string): void;Added
ohos.web.webviewWebAsyncControllerstoreWebArchive(baseName: string, autoName: boolean): Promise<string>;
storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback<string>): void;
Added
ohos.web.webviewWebAsyncControllerconstructor(controller: WebController);Added
ohos.web.webviewWebDataBasestatic saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;Added
ohos.web.webviewWebDataBasestatic getHttpAuthCredentials(host: string, realm: string): Array<string>;Added
ohos.web.webviewWebDataBasestatic deleteHttpAuthCredentials(): void;Added
ohos.web.webviewWebDataBasestatic existHttpAuthCredentials(): boolean;Added
ohos.web.webviewWebStoragestatic getOriginUsage(origin : string) : Promise<number> ;
static getOriginUsage(origin : string, callback : AsyncCallback<number>) : void;
Added
ohos.web.webviewWebStoragestatic getOriginQuota(origin : string) : Promise<number>;
static getOriginQuota(origin : string, callback : AsyncCallback<number>) : void;
Added
ohos.web.webviewWebStoragestatic getOrigins() : Promise<Array<WebStorageOrigin>>;
static getOrigins(callback: AsyncCallback<Array<WebStorageOrigin>>) : void;
Added
ohos.web.webviewWebStoragestatic deleteOrigin(origin : string): void;Added
ohos.web.webviewWebStoragestatic deleteAllData() : void;Added
ohos.web.webviewWebStorageOriginquota: number;Added
ohos.web.webviewWebStorageOriginusage: number;Added
ohos.web.webviewWebStorageOriginorigin: string;Added
ohos.webWebDataBasestatic saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;Deleted
ohos.webWebDataBasestatic getHttpAuthCredentials(host: string, realm: string): Array<string>;Deleted
ohos.webWebDataBasestatic deleteHttpAuthCredentials(): void;Deleted
ohos.webWebDataBasestatic existHttpAuthCredentials(): boolean;Deleted
ohos.webWebStoragestatic getOriginUsage(origin : string) : Promise<number> ;
static getOriginUsage(origin : string, callback : AsyncCallback<number>) : void;
Deleted
ohos.webWebStoragestatic getOriginQuota(origin : string) : Promise<number>;
static getOriginQuota(origin : string, callback : AsyncCallback<number>) : void;
Deleted
ohos.webWebStoragestatic getOrigins() : Promise<Array<WebStorageOrigin>>;
static getOrigins(callback: AsyncCallback<Array<WebStorageOrigin>>) : void;
Deleted
ohos.webWebStoragestatic deleteOrigin(origin : string): void;Deleted
ohos.webWebStoragestatic deleteAllData() : void;Deleted
ohos.webWebStorageOriginquota: number;Deleted
ohos.webWebStorageOriginusage: number;Deleted
ohos.webWebStorageOriginorigin: string;Deleted

你可能感兴趣的鸿蒙文章

harmony(鸿蒙)Readme

harmony(鸿蒙)Updates (OpenHarmony 3.2 Beta2 -> OpenHarmony 3.2 Beta3)

harmony(鸿蒙)JS API Changes of the Ability Framework

harmony(鸿蒙)JS API Changes of the Accessibility Subsystem

harmony(鸿蒙)JS API Changes of the Account Subsystem

harmony(鸿蒙)JS API Changes of the ArkUI Development Framework

harmony(鸿蒙)JS API Changes of the Power Management Subsystem

harmony(鸿蒙)JS API Changes of the Bundle Management Framework

harmony(鸿蒙)JS API Changes of the Communication Subsystem

harmony(鸿蒙)JS API Changes of the Utils Subsystem

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