# Interfaces (Others)
> **NOTE**
>
> - This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
>
> - You can preview how this component looks on a real device, but not in DevEco Studio Previewer.
## WebOptions
Defines web options through the [APIs](./arkts-basic-components-web.md).
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ---------- | ---------------------------------------- | ---- | ---------------------------------------- |
| src | string \| [Resource](../apis-arkui/arkui-ts/ts-types.md#resource) | Yes | Address of a web page resource. To access local resource files, use the $rawfile or resource protocol. To load a local resource file (in HTML or TXT format) in the sandbox outside of the application package, use **file://** to specify the path of the sandbox.
**src** cannot be dynamically changed through a state variable (for example, @State). To change the value, call [loadUrl()](./arkts-apis-webview-WebviewController.md#loadurl).|
| controller | [WebController](./arkts-basic-components-web-WebController.md) \| [WebviewController9+](./arkts-basic-components-web-t.md#webviewcontroller9) | Yes | Controller that controls various behaviors of **Web** components, including page navigation, declaration period status, and JavaScript interaction. This API is deprecated since API version 9. You are advised to use **WebviewController** instead.|
| renderMode12+ | [RenderMode](./arkts-basic-components-web-e.md#rendermode12)| No | Rendering mode.
**RenderMode.ASYNC_RENDER** (default, cannot be dynamically adjusted): The **Web** component is rendered asynchronously.
**RenderMode.SYNC_RENDER**: The **Web** component is rendered synchronously within the current execution context.|
| incognitoMode11+ | boolean | No| Whether to enable incognito mode. The value **true** means to enable incognito mode, and **false** means the opposite.
Default value: **false**.|
| sharedRenderProcessToken12+ | string | No| Token of the shared rendering process specified by the **Web** component. In multi-rendering process mode, the **Web** component with the same token preferentially attempts to reuse the rendering process bound to the token. The token is bound to the rendering process when the rendering process is initialized. When the rendering process is not associated with a **Web** component, its binding to the token is removed.
Default value: **""**. |
## WebMediaOptions10+
Describes the web media options.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ------- | ---- | ---------------------------------------- |
| resumeInterval | number | No | Validity period for automatically resuming a web audio paused by another application, in seconds. The value range is [-2147483648, 2147483647]. If **resumeInterval** is set to **0**, the playback is not automatically resumed. If **resumeInterval** is set to a value greater than 0, the playback is resumed in the specified period. If **resumeInterval** is set to a value less than 0, the playback is resumed in an unlimited period. Due to the approximate value, the validity period may have a deviation of less than 1 second.
**NOTE**
After an HLS video is interrupted, the video playback is automatically resumed when the video is returned to the foreground.|
| audioExclusive | boolean | No | Whether the audio of multiple **Web** instances in an application is exclusive.
The value **true** indicates that the audio of multiple **Web** instances in an application is exclusive, and **false** indicates the opposite. |
| audioSessionType20+ | [AudioSessionType](./arkts-basic-components-web-e.md#audiosessiontype20) | No | Web audio type in the application. The default value is [STREAM_USAGE_MUSIC](../../reference/apis-audio-kit/arkts-apis-audio-e.md#streamusage). This parameter changes the mapping between the component audio type and the system audio type, which affects the ArkWeb audio focus policy.|
## ScriptItem11+
Describes the **ScriptItem** object registered with the **Web** component through the [javaScriptOnDocumentStart](./arkts-basic-components-web-attributes.md#javascriptondocumentstart11) attribute.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ----------- | -------------- | ---- | --------------------- |
| script | string | Yes | JavaScript script to be registered and executed.|
| scriptRules | Array\ | Yes | Matching rules for allowed sources.
1. To allow URLs from all sources, use the wildcard (\*).
2. If exact match is required, specify the exact URL, for example, **https:\//www\.example.com**.
3. For fuzzy match, you can use a wildcard (\*) in the website URL, for example, **https://*.example.com**. Websites such as "x,*.y.com" and "* foobar.com" are not allowed.
4. If the source is an IP address, follow rule 2.
5. For protocols other than HTTP/HTTPS (custom protocols), exact match and fuzzy match are not supported, and the protocol must end with "://", for example, **resource://**.
6. If one of the preceding rules is not met in **scriptRules**, the **scriptRules** does not take effect.|
## NestedScrollOptionsExt14+
Implements a **NestedScrollOptionsExt** object to set up, down, left, and right nested scrolling options.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---------------- | ---- | -------------------- |
| scrollUp | [NestedScrollMode](../apis-arkui/arkui-ts/ts-appendix-enums.md#nestedscrollmode10) | No | Nested scrolling options when the component scrolls up.|
| scrollDown | [NestedScrollMode](../apis-arkui/arkui-ts/ts-appendix-enums.md#nestedscrollmode10) | No | Nested scrolling options when the component scrolls down.|
| scrollLeft | [NestedScrollMode](../apis-arkui/arkui-ts/ts-appendix-enums.md#nestedscrollmode10) | No | Nested scrolling options when the component scrolls left.|
| scrollRight | [NestedScrollMode](../apis-arkui/arkui-ts/ts-appendix-enums.md#nestedscrollmode10) | No | Nested scrolling options when the component scrolls right.|
## NativeMediaPlayerConfig12+
Represents the configuration for [enabling the application to take over web page media playback](./arkts-basic-components-web-attributes.md#enablenativemediaplayer12).
**System capability**: SystemCapability.Web.Webview.Core
| Name| Type| Mandatory| Description|
|------|------|------|------|
| enable | boolean | Yes| Whether to enable the application to take over web page media playback.
The value **true** means to enable the application to take over web page media playback, and **false** means the opposite.
Default value: **false**.|
| shouldOverlay | boolean | Yes| Whether the video player's display overlays the web page content when the application takes over the web page's video player.
The value **true** indicates that the video player's display overlays the web page content. This means that the height of the video layer is adjusted to cover the web page content. The value **false** indicates that the video player's display does not overlay the web page content. This means that the video player maintains its original height and is embedded within the web page.
Default value: **false**.|
## ExpandedMenuItemOptions12+
Represents the custom expanded menu item options.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ---------- | -----------------------------------------------------| ------ | ---------------- |
| content | [ResourceStr](../apis-arkui/arkui-ts/ts-types.md#resourcestr) | Yes | Display content. |
| startIcon | [ResourceStr](../apis-arkui/arkui-ts/ts-types.md#resourcestr) | No | Display icon. |
| action | (selectedText: {plainText: string}) => void | Yes | Selected text.|
## AdsBlockedDetails12+
Provides detailed information about the blocked ads when ads are blocked.
**System capability**: SystemCapability.Web.Webview.Core
| Name| Type | Mandatory | Description |
| ------- | -------------------------------------------------------------------------------- | ---- | ------------------------- |
| url | string | Yes | URL of the page where ads are blocked.|
| adsBlocked | Array\ | Yes | URLs or dompaths of the blocked ads. If multiple ads have the same URLs, duplicate elements may exist.|
## SelectionMenuOptionsExt13+
Represents the selection menu option extension.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ---------- | -----------------------------------------------------| ------ | ---------------- |
| onAppear | Callback\ | No | Callback invoked when the custom selection menu appears. |
| onDisappear | Callback\ | No | Callback invoked when the custom selection menu disappears. |
| preview | [CustomBuilder](../apis-arkui/arkui-ts/ts-types.md#custombuilder8) | No | Preview content style of the custom selection menu. If this parameter is not set, there is no preview content.|
| menuType | [MenuType](../apis-arkui/arkui-ts/ts-text-common.md#menutype13) | No | Type of the custom selection menu.
Default value: **MenuType.SELECTION_MENU**
Since API version 20, **MenuType.PREVIEW_MENU** supports hyperlink preview. |
| previewMenuOptions20+ | [PreviewMenuOptions](#previewmenuoptions20) | No | Custom preview menu options.|
## PreviewMenuOptions20+
Represents the options of the preview menu.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ---------- | -----------------------------------------------------| ------ | ---------------- |
| hapticFeedbackMode | [HapticFeedbackMode](../apis-arkui/arkui-ts/ts-universal-attributes-menu.md#hapticfeedbackmode18) | No | Vibration effect when the menu is displayed. The **ohos.permission.VIBRATE** permission is required.
Default value: **HapticFeedbackMode.DISABLED**, indicating no vibration when the menu is displayed. |
## EmbedOptions16+
Represents the same-layer rendering configuration of the **Web** component.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ------- | ---- | ---------------------------------------- |
| supportDefaultIntrinsicSize | boolean | No | Whether a same-layer rendering element supports the fixed size of 300 × 150.
When the size of an element is set using CSS on the HTML5 side, the size of the same-layer rendering element uses the CSS size. Otherwise, the size is fixed.
If the value is **true**, the fixed size is 300 × 150.
If the value is **false** and the CSS size is not set on the HTML5 side, the same-layer rendering elements are not rendered.
Default value: **false**.
Unit: px.|
| supportCssDisplayChange20+ | boolean | No | Whether the same-layer rendering visibility API supports the display attribute.
By default, the visibility status of same-layer tags relative to the viewport is supported.
If this attribute is set to **true**, CSS attributes can be displayed, including visibility, display, width, and height.
Otherwise, CSS attributes are not displayed, and only same-layer tags are visible relative to the viewport.|
## OnAlertEvent12+
Represents the callback invoked when **alert()** is invoked to display an alert dialog box on the web page.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the web page where the dialog box is displayed. |
| message | string | Yes| Message displayed in the dialog box. |
| result | [JsResult](./arkts-basic-components-web-JsResult.md) | Yes| User operation. |
## OnBeforeUnloadEvent12+
Represents the callback invoked when this page is about to exit after the user refreshes or closes the page.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the web page where the dialog box is displayed. |
| message | string | Yes| Message displayed in the dialog box. |
| result | [JsResult](./arkts-basic-components-web-JsResult.md) | Yes| User operation. |
| isReload20+ | boolean | No| Whether the page is refreshed.
The value **true** indicates that the page is about to leave due to refreshing, and **false** indicates that the page is about to leave due to closing.
Default value: **false**.|
## OnConfirmEvent12+
Represents the callback triggered when **confirm()** is invoked by the web page.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the web page where the dialog box is displayed. |
| message | string | Yes| Message displayed in the dialog box. |
| result | [JsResult](./arkts-basic-components-web-JsResult.md) | Yes| User operation. |
## OnPromptEvent12+
Represents the callback triggered when **prompt()** is invoked by the web page.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the web page where the dialog box is displayed. |
| message | string | Yes| Message displayed in the dialog box. |
| value | string | Yes| Information in the dialog box. |
| result | [JsResult](./arkts-basic-components-web-JsResult.md) | Yes| User operation. |
## OnConsoleEvent12+
Represents the callback invoked to notify the host application of a JavaScript console message.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| message | [ConsoleMessage](./arkts-basic-components-web-ConsoleMessage.md) | Yes| Console message. |
## OnErrorReceiveEvent12+
Represents the callback triggered when an error occurs during web page loading.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| request | [WebResourceRequest](./arkts-basic-components-web-WebResourceRequest.md) | Yes| Encapsulation of a web page request. |
| error | [WebResourceError](./arkts-basic-components-web-WebResourceError.md) | Yes| Encapsulation of a web page resource loading error.|
## OnHttpErrorReceiveEvent12+
Represents the callback triggered when an HTTP error occurs during web page resource loading.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| request | [WebResourceRequest](./arkts-basic-components-web-WebResourceRequest.md) | Yes| Encapsulation of a web page request. |
| response | [WebResourceResponse](./arkts-basic-components-web-WebResourceResponse.md) | Yes| Encapsulation of a resource response.|
## OnDownloadStartEvent12+
Represents the callback invoked when the host application starts downloading a file.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL for the download task. |
| userAgent | string | Yes| User agent used for download. |
| contentDisposition | string | Yes| Content-Disposition response header returned by the server, which may be empty.|
| mimetype | string | Yes| MIME type of the content returned by the server. |
| contentLength | number | Yes| Length of the content returned by the server. |
## OnRefreshAccessedHistoryEvent12+
Represents the callback invoked when the access history of the web page is refreshed.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL to be accessed. |
| isRefreshed | boolean | Yes| Whether the page is reloaded. The value **true** means that the page is reloaded by invoking the [refresh9+](./arkts-apis-webview-WebviewController.md#refresh) API, and **false** means the opposite.|
## OnRenderExitedEvent12+
Represents the callback invoked when the rendering process exits.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| renderExitReason | [RenderExitReason](./arkts-basic-components-web-e.md#renderexitreason9) | Yes| Cause for the abnormal exit of the rendering process.|
## OnShowFileSelectorEvent12+
Represents the callback invoked to notify the file selector result.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| result | [FileSelectorResult](./arkts-basic-components-web-FileSelectorResult.md) | Yes| File selection result to be sent to the **Web** component.|
| fileSelector | [FileSelectorParam](./arkts-basic-components-web-FileSelectorParam.md) | Yes| Information about the file selector. |
## OnResourceLoadEvent12+
Represents the callback invoked when the URL is loaded.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the loaded resource file.|
## OnScaleChangeEvent12+
Represents the callback invoked when the display scale of this page changes.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| oldScale | number | Yes| Display scale of the page before the change.|
| newScale | number | Yes| Display scale of the page after the change.|
## OnHttpAuthRequestEvent12+
Represents the callback invoked when an HTTP authentication request is received.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| handler | [HttpAuthHandler](./arkts-basic-components-web-HttpAuthHandler.md) | Yes| User operation. |
| host | string | Yes| Host to which the HTTP authentication credential is applied.|
| realm | string | Yes| Realm to which the HTTP authentication credential is applied. |
## OnInterceptRequestEvent12+
Represents the callback invoked when the **Web** component is about to load a URL.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| request | [WebResourceRequest](./arkts-basic-components-web-WebResourceRequest.md) | Yes| Information about the URL request.|
## OnPermissionRequestEvent12+
Represents the callback invoked when a permission request is received.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| request | [PermissionRequest](./arkts-basic-components-web-PermissionRequest.md) | Yes| User operation.|
## OnScreenCaptureRequestEvent12+
Represents the callback invoked when a screen capture request is received.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| handler | [ScreenCaptureHandler](./arkts-basic-components-web-ScreenCaptureHandler.md) | Yes| User operation.|
## OnContextMenuShowEvent12+
Represents the callback invoked during a call to allow for the display of a custom context menu.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| param | [WebContextMenuParam](./arkts-basic-components-web-WebContextMenuParam.md) | Yes| Parameters related to the context menu. |
| result | [WebContextMenuResult](./arkts-basic-components-web-WebContextMenuResult.md) | Yes| Result of the context menu.|
## OnSearchResultReceiveEvent12+
Represents the callback invoked to notify the caller of the search result on the web page.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| activeMatchOrdinal | number | Yes| Sequence number of the current match, which starts from 0. |
| numberOfMatches | number | Yes| Total number of matches. |
| isDoneCounting | boolean | Yes| Whether the search operation on the current page is complete.
The value **true** indicates that the search operation on the current page is complete, and **false** indicates the opposite.
This API may be called multiple times until **isDoneCounting** is **true**.|
## OnScrollEvent12+
Represents the callback invoked when the scrollbar scrolls to a specified position.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| xOffset | number | Yes| Position of the scrollbar on the x-axis relative to the leftmost of the web page.
Unit: vp.|
| yOffset | number | Yes| Position of the scrollbar on the y-axis relative to the top of the web page.
Unit: vp.|
## OnSslErrorEventReceiveEvent12+
Represents the callback invoked when the web page receives an SSL error.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| handler | [SslErrorHandler](./arkts-basic-components-web-SslErrorHandler.md) | Yes| User operation.|
| error | [SslError](./arkts-basic-components-web-e.md#sslerror9) | Yes| Error code. |
| certChainData15+ | Array | No| Certificate chain data. |
## SslErrorEvent12+
Provides details about the callback invoked when an SSL error occurs during resource loading.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ------- | ------------------------------------ | ---- | -------------- |
| handler | [SslErrorHandler](./arkts-basic-components-web-SslErrorHandler.md) | Yes | User operation.|
| error | [SslError](./arkts-basic-components-web-e.md#sslerror9) | Yes | Error code. |
| url | string | Yes | URL. |
| originalUrl | string | Yes | Original URL of the request. |
| referrer | string | Yes | Referrer URL. |
| isFatalError | boolean | Yes | Whether the error is a fatal error.
The value **true** indicates a fatal error, and **false** indicates a non-fatal error. |
| isMainFrame | boolean | Yes | Whether the resource is a main resource.
The value **true** indicates a main resource, and **false** indicates a non-main resource. |
| certChainData20+ | Array | No| Certificate chain data. |
## OnClientAuthenticationEvent12+
Represents the callback invoked when an SSL client certificate is required from the user.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| handler | [ClientAuthenticationHandler](./arkts-basic-components-web-ClientAuthenticationHandler.md) | Yes| User operation. |
| host | string | Yes| Host name of the server that requests a certificate. |
| port | number | Yes| Port number of the server that requests a certificate. |
| keyTypes | Array | Yes| Acceptable asymmetric private key types. |
| issuers | Array | Yes| Issuer of the certificate that matches the private key.|
## OnWindowNewEvent12+
Represents the callback invoked when the web page requests the user to create a window.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| isAlert | boolean | Yes| Whether to open the target URL in a new window. The value **true** means to open the target URL in a new window, and **false** means to open the target URL in a new tab. |
| isUserTrigger | boolean | Yes| Whether the creation is triggered by the user. The value **true** means that the creation is triggered by the user, and **false** means the opposite. |
| targetUrl | string | Yes| Target URL. |
| handler | [ControllerHandler](./arkts-basic-components-web-ControllerHandler.md) | Yes| **WebviewController** instance for setting the new window.|
## OnTouchIconUrlReceivedEvent12+
Represents the callback invoked when an apple-touch-icon URL is received.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| Received apple-touch-icon URL.|
| precomposed | boolean | Yes| Whether the apple-touch-icon is precomposed.
**true** indicates that the apple-touch-icon is precomposed, and **false** indicates the opposite. |
## OnFaviconReceivedEvent12+
Represents the callback invoked when this web page receives a new favicon.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| favicon | [PixelMap](../apis-image-kit/arkts-apis-image-PixelMap.md) | Yes| **PixelMap** object of the received favicon.|
## OnPageVisibleEvent12+
Represents the callback invoked when the old page is not displayed and the new page is about to be visible.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the new page that is able to be visible when the old page is not displayed.|
## OnDataResubmittedEvent12+
Represents the callback invoked when the web form data can be resubmitted.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| handler | [DataResubmissionHandler](./arkts-basic-components-web-DataResubmissionHandler.md) | Yes| Handler for resubmitting web form data.|
## OnAudioStateChangedEvent12+
Represents the callback invoked when the audio playback status on the web page changes.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| playing | boolean | Yes| Audio playback status on the current page. The value **true** means that audio is being played, and **false** means the opposite.|
## OnFirstContentfulPaintEvent12+
Represents the callback invoked when the first content paint occurs on the web page.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| navigationStartTick | number | Yes| Navigation start time, in microseconds. |
| firstContentfulPaintMs | number | Yes| Time between navigation and when the content is first rendered, in milliseconds.|
## OnLoadInterceptEvent12+
Represents the callback invoked when the **Web** component is about to access a URL.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| data | [WebResourceRequest](./arkts-basic-components-web-WebResourceRequest.md) | Yes| Information about the URL request.|
## OnOverScrollEvent12+
Represents the callback invoked when the web page is overscrolled.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| xOffset | number | Yes| Horizontal overscroll offset based on the leftmost edge of the web page.
Unit: vp.|
| yOffset | number | Yes| Vertical overscroll offset based on the top edge of the web page.
Unit: vp.|
## JavaScriptProxy12+
Represents the JavaScript object to be injected.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| object | object | Yes | Object to be registered. Methods can be declared, but attributes cannot. |
| name | string | Yes | Name of the object to be registered, which is the same as that invoked in the window. |
| methodList | Array\ | Yes | Synchronous methods of the JavaScript object to be registered at the application side. |
| controller | [WebController](./arkts-basic-components-web-WebController.md) \| [WebviewController9+](./arkts-apis-webview-WebviewController.md) | Yes | - | Controller. This API is deprecated since API version 9. You are advised to use **WebviewController** instead.|
| asyncMethodList12+ | Array\ | No | Asynchronous methods of the JavaScript object to be registered at the application side. Asynchronous methods cannot obtain return values. |
| permission12+ | string | No | JSON string, which is empty by default. This string is used to configure JSBridge permission control and define the URL trustlist at the object and method levels.
For the example, see [Invoking Application Functions on the Frontend Page](../../web/web-in-page-app-function-invoking.md).|
## OnPageEndEvent12+
Represents the callback invoked when the web page loading ends.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the page. |
## OnPageBeginEvent12+
Represents the callback invoked when the web page loading begins.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| url | string | Yes| URL of the page. |
## OnProgressChangeEvent12+
Represents the callback invoked when the web page loading progress changes.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| newProgress | number | Yes| New loading progress. The value is an integer ranging from 0 to 100. |
## OnTitleReceiveEvent12+
Represents the callback invoked when the document title of the web page is changed.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| title | string | Yes| Document title. |
| isRealTitle20+ | boolean | No| Whether the document title is a real title. The value true indicates that the title is from the **title** tag of the web page, and **false** indicates that the title is automatically generated based on the URL. |
## OnGeolocationShowEvent12+
Represents the callback invoked when a request to obtain the geolocation information is received.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| -------------- | ---- | ---- | ---------------------------------------- |
| origin | string | Yes| Index of the origin. |
| geolocation | [JsGeolocation](./arkts-basic-components-web-JsGeolocation.md) | Yes| User operation. |
## NativeEmbedVisibilityInfo12+
Provides visibility information about the same-layer tag.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ------------- | ------------------------------------| ----- | ------------------ |
| visibility | boolean | Yes | Whether the same-layer tag is visible.
The value **true** indicates that the same-layer tag is visible, and **false** indicates the opposite. |
| embedId | string | Yes | ID of the same-layer rendered tag. |
## RenderProcessNotRespondingData12+
Provides detailed information about the unresponsive rendering process.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory| Description |
| ------------------------ | ------ | ---- | -------------------------------------- |
| jsStack | string | Yes | JavaScript call stack information of the web page. |
| pid | number | Yes | Process ID of the web page.|
| reason | [RenderProcessNotRespondingReason](./arkts-basic-components-web-e.md#renderprocessnotrespondingreason12) | Yes | Reason why the rendering process does not respond.|
## FullScreenEnterEvent12+
Provides details about the event that the **Web** component to enter the full-screen mode.
**System capability**: SystemCapability.Web.Webview.Core
| Name | Type | Mandatory | Description |
| ----------- | ------------------------------------ | ---- | --------------------- |
| handler | [FullScreenExitHandler](./arkts-basic-components-web-FullScreenExitHandler.md) | Yes | Function handle for exiting full screen mode.|
| videoWidth | number | No | Video width, in px. If the element that enters fulls screen mode is a **\