代码拉取完成,页面将自动刷新
操作 | 旧版本 | 新版本 | d.ts文件 |
---|---|---|---|
API跨平台权限变更 | 类名:global; API声明:declare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController; 差异内容:NA |
类名:global; API声明:declare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController; 差异内容:crossplatform |
component/web.d.ts |
syscap变更 | 类名:WebStorageOrigin; API声明:origin: string; 差异内容:NA |
类名:WebStorageOrigin; API声明:origin: string; 差异内容:SystemCapability.Web.Webview.Core |
api/@ohos.web.webview.d.ts |
syscap变更 | 类名:WebStorageOrigin; API声明:usage: number; 差异内容:NA |
类名:WebStorageOrigin; API声明:usage: number; 差异内容:SystemCapability.Web.Webview.Core |
api/@ohos.web.webview.d.ts |
syscap变更 | 类名:WebStorageOrigin; API声明:quota: number; 差异内容:NA |
类名:WebStorageOrigin; API声明:quota: number; 差异内容:SystemCapability.Web.Webview.Core |
api/@ohos.web.webview.d.ts |
syscap变更 | 类名:webview; API声明:type WebMessage = ArrayBuffer | string; 差异内容:NA |
类名:webview; API声明:type WebMessage = ArrayBuffer | string; 差异内容:SystemCapability.Web.Webview.Core |
api/@ohos.web.webview.d.ts |
syscap变更 | 类名:global; API声明:declare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController; 差异内容:NA |
类名:global; API声明:declare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController; 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
syscap变更 | 类名:ContextMenuEditStateFlags; API声明:NONE = 0 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:NONE = 0 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
syscap变更 | 类名:ContextMenuEditStateFlags; API声明:CAN_CUT = 1 << 0 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_CUT = 1 << 0 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
syscap变更 | 类名:ContextMenuEditStateFlags; API声明:CAN_COPY = 1 << 1 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_COPY = 1 << 1 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
syscap变更 | 类名:ContextMenuEditStateFlags; API声明:CAN_PASTE = 1 << 2 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_PASTE = 1 << 2 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
syscap变更 | 类名:ContextMenuEditStateFlags; API声明:CAN_SELECT_ALL = 1 << 3 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_SELECT_ALL = 1 << 3 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
syscap变更 | 类名:WebOptions; API声明:incognitoMode?: boolean; 差异内容:NA |
类名:WebOptions; API声明:incognitoMode?: boolean; 差异内容:SystemCapability.Web.Webview.Core |
component/web.d.ts |
错误码变更 | 类名:WebviewController; API声明:loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string): void; 差异内容:17100001,17100002,401 |
类名:WebviewController; API声明:loadData(data: string, mimeType: string, encoding: string, baseUrl?: string, historyUrl?: string): void; 差异内容:17100001,401 |
api/@ohos.web.webview.d.ts |
函数变更 | 类名:WebAttribute; API声明:onBeforeUnload(callback: (event?: { url: string; message: string; result: JsResult; }) => boolean): WebAttribute; 差异内容:callback: (event?: { url: string; message: string; result: JsResult; }) => boolean |
类名:WebAttribute; API声明:onBeforeUnload(callback: (event?: { / * The url of the page. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; / * The message of confirm dialog. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ message: string; / * Handle the user's JavaScript result. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ result: JsResult; }) => boolean): WebAttribute; 差异内容:callback: (event?: { / * The url of the page. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; / * The message of confirm dialog. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ message: string; / * Handle the user's JavaScript result. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ result: JsResult; }) => boolean |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onDownloadStart(callback: (event?: { / * The URL of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ url: string; / * The userAgent of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ userAgent: string; contentDisposition: string; / * The mimetype of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ mimetype: string; / * The contentLength of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ contentLength: number; }) => void): WebAttribute; 差异内容:callback: (event?: { / * The URL of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ url: string; / * The userAgent of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ userAgent: string; contentDisposition: string; / * The mimetype of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ mimetype: string; / * The contentLength of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ contentLength: number; }) => void |
类名:WebAttribute; API声明:onDownloadStart(callback: (event?: { / * The URL of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ url: string; / * The userAgent of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ userAgent: string; / * The contentDisposition of page. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ contentDisposition: string; / * The mimetype of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ mimetype: string; / * The contentLength of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ contentLength: number; }) => void): WebAttribute; 差异内容:callback: (event?: { / * The URL of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ url: string; / * The userAgent of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ userAgent: string; / * The contentDisposition of page. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ contentDisposition: string; / * The mimetype of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ mimetype: string; / * The contentLength of page. * * @syscap SystemCapability.Web.Webview.Core * @crossplatform * @atomicservice * @since 11 */ contentLength: number; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onRefreshAccessedHistory(callback: (event?: { url: string; isRefreshed: boolean; }) => void): WebAttribute; 差异内容:callback: (event?: { url: string; isRefreshed: boolean; }) => void |
类名:WebAttribute; API声明:onRefreshAccessedHistory(callback: (event?: { / * URL of the visit. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; / * If true, the page is being reloaded, otherwise, means that the page is newly loaded. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isRefreshed: boolean; }) => void): WebAttribute; 差异内容:callback: (event?: { / * URL of the visit. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; / * If true, the page is being reloaded, otherwise, means that the page is newly loaded. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isRefreshed: boolean; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onRenderExited(callback: (event?: { renderExitReason: RenderExitReason; }) => void): WebAttribute; 差异内容:callback: (event?: { renderExitReason: RenderExitReason; }) => void |
类名:WebAttribute; API声明:onRenderExited(callback: (event?: { / * The specific reason why the rendering process exits abnormally. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ renderExitReason: RenderExitReason; }) => void): WebAttribute; 差异内容:callback: (event?: { / * The specific reason why the rendering process exits abnormally. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ renderExitReason: RenderExitReason; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onResourceLoad(callback: (event: { url: string; }) => void): WebAttribute; 差异内容:callback: (event: { url: string; }) => void |
类名:WebAttribute; API声明:onResourceLoad(callback: (event: { / * The URL of the loaded resource file. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; }) => void): WebAttribute; 差异内容:callback: (event: { / * The URL of the loaded resource file. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onFullScreenEnter(callback: (event: { handler: FullScreenExitHandler; }) => void): WebAttribute; 差异内容:callback: (event: { handler: FullScreenExitHandler; }) => void |
类名:WebAttribute; API声明:onFullScreenEnter(callback: (event: { / * A function handle to exit full-screen mode. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: FullScreenExitHandler; }) => void): WebAttribute; 差异内容:callback: (event: { / * A function handle to exit full-screen mode. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: FullScreenExitHandler; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onInterceptRequest(callback: (event?: { request: WebResourceRequest; }) => WebResourceResponse): WebAttribute; 差异内容:callback: (event?: { request: WebResourceRequest; }) => WebResourceResponse |
类名:WebAttribute; API声明:onInterceptRequest(callback: (event?: { / * The url of the event. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ request: WebResourceRequest; }) => WebResourceResponse): WebAttribute; 差异内容:callback: (event?: { / * The url of the event. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ request: WebResourceRequest; }) => WebResourceResponse |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onScreenCaptureRequest(callback: (event?: { handler: ScreenCaptureHandler; }) => void): WebAttribute; 差异内容:callback: (event?: { handler: ScreenCaptureHandler; }) => void |
类名:WebAttribute; API声明:onScreenCaptureRequest(callback: (event?: { / * Notifies the user of the operation behavior of the web component. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: ScreenCaptureHandler; }) => void): WebAttribute; 差异内容:callback: (event?: { / * Notifies the user of the operation behavior of the web component. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: ScreenCaptureHandler; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onContextMenuShow(callback: (event?: { param: WebContextMenuParam; result: WebContextMenuResult; }) => boolean): WebAttribute; 差异内容:callback: (event?: { param: WebContextMenuParam; result: WebContextMenuResult; }) => boolean |
类名:WebAttribute; API声明:onContextMenuShow(callback: (event?: { / * The menu-related parameters. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ param: WebContextMenuParam; / * The menu corresponding event is passed to the kernel. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ result: WebContextMenuResult; }) => boolean): WebAttribute; 差异内容:callback: (event?: { / * The menu-related parameters. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ param: WebContextMenuParam; / * The menu corresponding event is passed to the kernel. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ result: WebContextMenuResult; }) => boolean |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onSearchResultReceive(callback: (event?: { activeMatchOrdinal: number; numberOfMatches: number; isDoneCounting: boolean; }) => void): WebAttribute; 差异内容:callback: (event?: { activeMatchOrdinal: number; numberOfMatches: number; isDoneCounting: boolean; }) => void |
类名:WebAttribute; API声明:onSearchResultReceive(callback: (event?: { / * The ordinal number of the currently matched lookup item (starting from 0). * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ activeMatchOrdinal: number; / * The number of all matched keywords. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ numberOfMatches: number; / * Find out whether the operation is completed on the next page. The method may be called back multiple times until isDoneCounting is true. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isDoneCounting: boolean; }) => void): WebAttribute; 差异内容:callback: (event?: { / * The ordinal number of the currently matched lookup item (starting from 0). * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ activeMatchOrdinal: number; / * The number of all matched keywords. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ numberOfMatches: number; / * Find out whether the operation is completed on the next page. The method may be called back multiple times until isDoneCounting is true. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isDoneCounting: boolean; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onSslErrorEventReceive(callback: (event: { handler: SslErrorHandler; error: SslError; }) => void): WebAttribute; 差异内容:callback: (event: { handler: SslErrorHandler; error: SslError; }) => void |
类名:WebAttribute; API声明:onSslErrorEventReceive(callback: (event: { / * Notifies the user of the operation behavior of the web component. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: SslErrorHandler; / * Error codes. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ error: SslError; }) => void): WebAttribute; 差异内容:callback: (event: { / * Notifies the user of the operation behavior of the web component. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: SslErrorHandler; / * Error codes. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ error: SslError; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onClientAuthenticationRequest(callback: (event: { handler: ClientAuthenticationHandler; host: string; port: number; keyTypes: Array<string>; issuers: Array<string>; }) => void): WebAttribute; 差异内容:callback: (event: { handler: ClientAuthenticationHandler; host: string; port: number; keyTypes: Array<string>; issuers: Array<string>; }) => void |
类名:WebAttribute; API声明:onClientAuthenticationRequest(callback: (event: { / * Notifies the user of the operation behavior of the web component. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: ClientAuthenticationHandler; / * The hostname of the requesting certificate server. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ host: string; / * The port number of the request certificate server. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ port: number; / * Acceptable asymmetric key types. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ keyTypes: Array<string>; / * Certificates that match the private key are acceptable to the issuer. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ issuers: Array<string>; }) => void): WebAttribute; 差异内容:callback: (event: { / * Notifies the user of the operation behavior of the web component. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: ClientAuthenticationHandler; / * The hostname of the requesting certificate server. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ host: string; / * The port number of the request certificate server. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ port: number; / * Acceptable asymmetric key types. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ keyTypes: Array<string>; / * Certificates that match the private key are acceptable to the issuer. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ issuers: Array<string>; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onWindowNew(callback: (event: { isAlert: boolean; isUserTrigger: boolean; targetUrl: string; handler: ControllerHandler; }) => void): WebAttribute; 差异内容:callback: (event: { isAlert: boolean; isUserTrigger: boolean; targetUrl: string; handler: ControllerHandler; }) => void |
类名:WebAttribute; API声明:onWindowNew(callback: (event: { / * true indicates the request to create a dialog and false indicates a new tab. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isAlert: boolean; / * true indicates that it is triggered by the user, and false indicates that it is triggered by a non-user. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isUserTrigger: boolean; / * Destination URL. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ targetUrl: string; / * Lets you set the WebviewController instance for creating a new window. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: ControllerHandler; }) => void): WebAttribute; 差异内容:callback: (event: { / * true indicates the request to create a dialog and false indicates a new tab. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isAlert: boolean; / * true indicates that it is triggered by the user, and false indicates that it is triggered by a non-user. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ isUserTrigger: boolean; / * Destination URL. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ targetUrl: string; / * Lets you set the WebviewController instance for creating a new window. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: ControllerHandler; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onTouchIconUrlReceived(callback: (event: { url: string; precomposed: boolean; }) => void): WebAttribute; 差异内容:callback: (event: { url: string; precomposed: boolean; }) => void |
类名:WebAttribute; API声明:onTouchIconUrlReceived(callback: (event: { / * The apple-touch-icon URL address received. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; / * Corresponding to whether apple-touch-icon is precomposited. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ precomposed: boolean; }) => void): WebAttribute; 差异内容:callback: (event: { / * The apple-touch-icon URL address received. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ url: string; / * Corresponding to whether apple-touch-icon is precomposited. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ precomposed: boolean; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onFaviconReceived(callback: (event: { favicon: PixelMap; }) => void): WebAttribute; 差异内容:callback: (event: { favicon: PixelMap; }) => void |
类名:WebAttribute; API声明:onFaviconReceived(callback: (event: { / * Received the Favicon icon for the PixelMap object. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ favicon: PixelMap; }) => void): WebAttribute; 差异内容:callback: (event: { / * Received the Favicon icon for the PixelMap object. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ favicon: PixelMap; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onDataResubmitted(callback: (event: { handler: DataResubmissionHandler; }) => void): WebAttribute; 差异内容:callback: (event: { handler: DataResubmissionHandler; }) => void |
类名:WebAttribute; API声明:onDataResubmitted(callback: (event: { / * Form data resubmission handle. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: DataResubmissionHandler; }) => void): WebAttribute; 差异内容:callback: (event: { / * Form data resubmission handle. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ handler: DataResubmissionHandler; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onAudioStateChanged(callback: (event: { playing: boolean; }) => void): WebAttribute; 差异内容:callback: (event: { playing: boolean; }) => void |
类名:WebAttribute; API声明:onAudioStateChanged(callback: (event: { / * The audio playback status of the current page, true if playing true otherwise false * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ playing: boolean; }) => void): WebAttribute; 差异内容:callback: (event: { / * The audio playback status of the current page, true if playing true otherwise false * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ playing: boolean; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onFirstContentfulPaint(callback: (event?: { navigationStartTick: number; firstContentfulPaintMs: number; }) => void): WebAttribute; 差异内容:callback: (event?: { navigationStartTick: number; firstContentfulPaintMs: number; }) => void |
类名:WebAttribute; API声明:onFirstContentfulPaint(callback: (event?: { / * The time at which navigation begins, expressed in microseconds. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ navigationStartTick: number; / * The time it takes to draw content for the first time from navigation, expressed in milliseconds. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ firstContentfulPaintMs: number; }) => void): WebAttribute; 差异内容:callback: (event?: { / * The time at which navigation begins, expressed in microseconds. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ navigationStartTick: number; / * The time it takes to draw content for the first time from navigation, expressed in milliseconds. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ firstContentfulPaintMs: number; }) => void |
component/web.d.ts |
函数变更 | 类名:WebAttribute; API声明:onOverScroll(callback: (event: { xOffset: number; yOffset: number; }) => void): WebAttribute; 差异内容:callback: (event: { xOffset: number; yOffset: number; }) => void |
类名:WebAttribute; API声明:onOverScroll(callback: (event: { / * Based on the leftmost part of the page, the horizontal scroll offset is over. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ xOffset: number; / * Based on the top of the page, the vertical scroll offset is over. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ yOffset: number; }) => void): WebAttribute; 差异内容:callback: (event: { / * Based on the leftmost part of the page, the horizontal scroll offset is over. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ xOffset: number; / * Based on the top of the page, the vertical scroll offset is over. * * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since 11 */ yOffset: number; }) => void |
component/web.d.ts |
函数变更 | 类名:WebResourceResponse; API声明:setResponseData(data: string | number | Resource); 差异内容:data: string | number | Resource |
类名:WebResourceResponse; API声明:setResponseData(data: string | number | Resource | ArrayBuffer); 差异内容:data: string | number | Resource | ArrayBuffer |
component/web.d.ts |
属性变更 | 类名:NativeEmbedInfo; API声明:id?: number; 差异内容:number |
类名:NativeEmbedInfo; API声明:id?: string; 差异内容:string |
component/web.d.ts |
新增API | NA | 类名:WebviewController; API声明:enableSafeBrowsing(enable: boolean): void; 差异内容:enableSafeBrowsing(enable: boolean): void; |
api/@ohos.web.webview.d.ts |
新增API | NA | 类名:WebviewController; API声明:isSafeBrowsingEnabled(): boolean; 差异内容:isSafeBrowsingEnabled(): boolean; |
api/@ohos.web.webview.d.ts |
新增API | NA | 类名:global; API声明:type OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDetails) => void; 差异内容:type OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDetails) => void; |
component/web.d.ts |
新增API | NA | 类名:global; API声明:type OnSafeBrowsingCheckResultCallback = (threatType: ThreatType) => void; 差异内容:type OnSafeBrowsingCheckResultCallback = (threatType: ThreatType) => void; |
component/web.d.ts |
新增API | NA | 类名:global; API声明: declare enum ThreatType 差异内容: declare enum ThreatType |
component/web.d.ts |
新增API | NA | 类名:ThreatType; API声明:THREAT_ILLEGAL = 0 差异内容:THREAT_ILLEGAL = 0 |
component/web.d.ts |
新增API | NA | 类名:ThreatType; API声明:THREAT_FRAUD = 1 差异内容:THREAT_FRAUD = 1 |
component/web.d.ts |
新增API | NA | 类名:ThreatType; API声明:THREAT_RISK = 2 差异内容:THREAT_RISK = 2 |
component/web.d.ts |
新增API | NA | 类名:ThreatType; API声明:THREAT_WARNING = 3 差异内容:THREAT_WARNING = 3 |
component/web.d.ts |
新增API | NA | 类名:global; API声明: declare enum WebNavigationType 差异内容: declare enum WebNavigationType |
component/web.d.ts |
新增API | NA | 类名:WebNavigationType; API声明:UNKNOWN = 0 差异内容:UNKNOWN = 0 |
component/web.d.ts |
新增API | NA | 类名:WebNavigationType; API声明:MAIN_FRAME_NEW_ENTRY = 1 差异内容:MAIN_FRAME_NEW_ENTRY = 1 |
component/web.d.ts |
新增API | NA | 类名:WebNavigationType; API声明:MAIN_FRAME_EXISTING_ENTRY = 2 差异内容:MAIN_FRAME_EXISTING_ENTRY = 2 |
component/web.d.ts |
新增API | NA | 类名:WebNavigationType; API声明:NAVIGATION_TYPE_NEW_SUBFRAME = 4 差异内容:NAVIGATION_TYPE_NEW_SUBFRAME = 4 |
component/web.d.ts |
新增API | NA | 类名:WebNavigationType; API声明:NAVIGATION_TYPE_AUTO_SUBFRAME = 5 差异内容:NAVIGATION_TYPE_AUTO_SUBFRAME = 5 |
component/web.d.ts |
新增API | NA | 类名:global; API声明: declare interface LoadCommittedDetails 差异内容: declare interface LoadCommittedDetails |
component/web.d.ts |
新增API | NA | 类名:LoadCommittedDetails; API声明:isMainFrame: boolean; 差异内容:isMainFrame: boolean; |
component/web.d.ts |
新增API | NA | 类名:LoadCommittedDetails; API声明:isSameDocument: boolean; 差异内容:isSameDocument: boolean; |
component/web.d.ts |
新增API | NA | 类名:LoadCommittedDetails; API声明:didReplaceEntry: boolean; 差异内容:didReplaceEntry: boolean; |
component/web.d.ts |
新增API | NA | 类名:LoadCommittedDetails; API声明:navigationType: WebNavigationType; 差异内容:navigationType: WebNavigationType; |
component/web.d.ts |
新增API | NA | 类名:LoadCommittedDetails; API声明:url: string; 差异内容:url: string; |
component/web.d.ts |
新增API | NA | 类名:WebAttribute; API声明:onSafeBrowsingCheckResult(callback: OnSafeBrowsingCheckResultCallback): WebAttribute; 差异内容:onSafeBrowsingCheckResult(callback: OnSafeBrowsingCheckResultCallback): WebAttribute; |
component/web.d.ts |
新增API | NA | 类名:WebAttribute; API声明:onNavigationEntryCommitted(callback: OnNavigationEntryCommittedCallback): WebAttribute; 差异内容:onNavigationEntryCommitted(callback: OnNavigationEntryCommittedCallback): WebAttribute; |
component/web.d.ts |
新增API | NA | 类名:WebAttribute; API声明:javaScriptOnDocumentEnd(scripts: Array<ScriptItem>): WebAttribute; 差异内容:javaScriptOnDocumentEnd(scripts: Array<ScriptItem>): WebAttribute; |
component/web.d.ts |
起始版本有变化 | 类名:WebStorageOrigin; API声明:origin: string; 差异内容:NA |
类名:WebStorageOrigin; API声明:origin: string; 差异内容:9 |
api/@ohos.web.webview.d.ts |
起始版本有变化 | 类名:WebStorageOrigin; API声明:usage: number; 差异内容:NA |
类名:WebStorageOrigin; API声明:usage: number; 差异内容:9 |
api/@ohos.web.webview.d.ts |
起始版本有变化 | 类名:WebStorageOrigin; API声明:quota: number; 差异内容:NA |
类名:WebStorageOrigin; API声明:quota: number; 差异内容:9 |
api/@ohos.web.webview.d.ts |
起始版本有变化 | 类名:webview; API声明:type WebMessage = ArrayBuffer | string; 差异内容:NA |
类名:webview; API声明:type WebMessage = ArrayBuffer | string; 差异内容:9 |
api/@ohos.web.webview.d.ts |
起始版本有变化 | 类名:global; API声明:declare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController; 差异内容:NA |
类名:global; API声明:declare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController; 差异内容:9 |
component/web.d.ts |
起始版本有变化 | 类名:ContextMenuEditStateFlags; API声明:NONE = 0 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:NONE = 0 差异内容:9 |
component/web.d.ts |
起始版本有变化 | 类名:ContextMenuEditStateFlags; API声明:CAN_CUT = 1 << 0 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_CUT = 1 << 0 差异内容:9 |
component/web.d.ts |
起始版本有变化 | 类名:ContextMenuEditStateFlags; API声明:CAN_COPY = 1 << 1 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_COPY = 1 << 1 差异内容:9 |
component/web.d.ts |
起始版本有变化 | 类名:ContextMenuEditStateFlags; API声明:CAN_PASTE = 1 << 2 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_PASTE = 1 << 2 差异内容:9 |
component/web.d.ts |
起始版本有变化 | 类名:ContextMenuEditStateFlags; API声明:CAN_SELECT_ALL = 1 << 3 差异内容:NA |
类名:ContextMenuEditStateFlags; API声明:CAN_SELECT_ALL = 1 << 3 差异内容:9 |
component/web.d.ts |
起始版本有变化 | 类名:WebOptions; API声明:incognitoMode?: boolean; 差异内容:NA |
类名:WebOptions; API声明:incognitoMode?: boolean; 差异内容:11 |
component/web.d.ts |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。