openharmony 鸿蒙 js-apidiff-web

2023-02-03 浏览 (674)

JS API Changes of the Web Subsystem

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

API Changes

ModuleClassMethod/Attribute/Enumeration/ConstantChange Type
ohos.webWebDataBasestatic saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;Added
ohos.webWebDataBasestatic getHttpAuthCredentials(host: string, realm: string): Array<string>;Added
ohos.webWebDataBasestatic deleteHttpAuthCredentials(): void;Added
ohos.webWebDataBasestatic existHttpAuthCredentials(): boolean;Added
ohos.webWebStoragestatic getOriginUsage(origin: string): Promise<number> ;
static getOriginUsage(origin: string, callback: AsyncCallback<number>): void;
Added
ohos.webWebStoragestatic getOriginQuota(origin: string): Promise<number>;
static getOriginQuota(origin: string, callback: AsyncCallback<number>): void;
Added
ohos.webWebStoragestatic getOrigins(): Promise<Array<WebStorageOrigin>>;
static getOrigins(callback: AsyncCallback<Array<WebStorageOrigin>>): void;
Added
ohos.webWebStoragestatic deleteOrigin(origin: string): void;Added
ohos.webWebStoragestatic deleteAllData(): void;Added
ohos.webWebStorageOriginquota: number;Added
ohos.webWebStorageOriginusage: number;Added
ohos.webWebStorageOriginorigin: string;Added
WebWebAttributeonInterceptRequest(callback: (event?: { request: WebResourceRequest}) => WebResourceResponse): WebAttribute;Added
WebWebAttributeonHttpAuthRequest(callback: (event?: { handler: HttpAuthHandler, host: string, realm: string }) => boolean): WebAttribute;Added
WebWebAttributeonScaleChange(callback: (event: {oldScale: number, newScale: number}) => void): WebAttribute;Added
WebWebAttributeonResourceLoad(callback: (event: {url: string}) => void): WebAttribute;Added
WebWebAttributeonPrompt(callback: (event?: {url: string, message: string, value: string, result: JsResult }) => boolean): WebAttribute;Added
WebWebAttributeinitialScale(percent: number): WebAttribute;Added
WebWebControllerbackOrForward(step: number): void;Added
WebWebControllergetPageHeight(): number;Added
WebWebControllergetTitle(): string;Added
WebWebControllergetDefaultUserAgent(): string;Added
WebWebControllergetWebId(): number;Added
WebWebControllergetHitTestValue(): HitTestValue;Added
WebWebControllerzoomOut(): boolean;Added
WebWebControllerzoomIn(): boolean;Added
WebWebResourceResponsesetResponseCode(code: number);Added
WebWebResourceResponsesetResponseHeader(header: Array<Header>);Added
WebWebResourceResponsesetReasonMessage(reason: string);Added
WebWebResourceResponsesetResponseMimeType(mimeType: string);Added
WebWebResourceResponsesetResponseEncoding(encoding: string);Added
WebWebResourceResponsesetResponseData(data: string);Added

你可能感兴趣的鸿蒙文章

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 Bundle Management Framework

harmony 鸿蒙JS API Changes of the Communication Subsystem

harmony 鸿蒙JS API Changes of the Compiler and Runtime Subsystem

harmony 鸿蒙JS API Changes of the DFX Subsystem

harmony 鸿蒙JS API Changes of the Distributed Data Management Subsystem

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

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