Event names that starts with android or ios are events platform-specific.

This list is generated from the WebView API Reference.

  • androidOnFormResubmission: As the host application if the browser should resend data as the requested page was a result of a POST. The default is to not resend the data. (READ MORE)
  • androidOnGeolocationPermissionsHidePrompt: Notify the host application that a request for Geolocation permissions, made with a previous call to androidOnGeolocationPermissionsShowPrompt has been canceled. Any related UI should therefore be hidden. (READ MORE)
  • androidOnGeolocationPermissionsShowPrompt: Event that notifies the host application that web content from the specified origin is attempting to use the Geolocation API, but no permission state is currently set for that origin. Note that for applications targeting Android N and later SDKs (API level > Build.VERSION_CODES.M) this method is only called for requests originating from secure origins such as https. On non-secure origins geolocation requests are automatically denied. (READ MORE)
  • androidOnJsBeforeUnload: Event fired when the client should display a dialog to confirm navigation away from the current page. This is the result of the onbeforeunload javascript event. If JsBeforeUnloadResponse.handledByClient is true, WebView will assume that the client will handle the confirm dialog. If JsBeforeUnloadResponse.handledByClient is false, a default value of true will be returned to javascript to accept navigation away from the current page. The default behavior is to return false. Setting the JsBeforeUnloadResponse.action to JsBeforeUnloadResponseAction.CONFIRM will navigate away from the current page, JsBeforeUnloadResponseAction.CANCEL will cancel the navigation. (READ MORE)
  • androidOnPermissionRequest: Event fired when the WebView is requesting permission to access the specified resources and the permission currently isn't granted or denied. (READ MORE)
  • androidOnReceivedIcon: Event fired when there is new favicon for the current page. (READ MORE)
  • androidOnReceivedLoginRequest: Event fired when a request to automatically log in the user has been processed. (READ MORE)
  • androidOnReceivedTouchIconUrl: Event fired when there is an url for an apple-touch-icon. (READ MORE)
  • androidOnRenderProcessGone: Event fired when the given WebView's render process has exited. The application's implementation of this callback should only attempt to clean up the WebView. The WebView should be removed from the view hierarchy, all references to it should be cleaned up. (READ MORE)
  • androidOnRenderProcessResponsive: Event called once when an unresponsive renderer currently associated with the WebView becomes responsive. (READ MORE)
  • androidOnRenderProcessUnresponsive: Event called when the renderer currently associated with the WebView becomes unresponsive as a result of a long running blocking task such as the execution of JavaScript. (READ MORE)
  • androidOnSafeBrowsingHit: Event fired when the webview notifies that a loading URL has been flagged by Safe Browsing. The default behavior is to show an interstitial to the user, with the reporting checkbox visible. (READ MORE)
  • androidOnScaleChanged: Use onZoomScaleChanged instead. (READ MORE)
  • androidShouldInterceptRequest: Notify the host application of a resource request and allow the application to return the data. If the return value is null, the WebView will continue to load the resource as usual. Otherwise, the return response and data will be used. (READ MORE)
  • iosOnDidReceiveServerRedirectForProvisionalNavigation: Called when a web view receives a server redirect. (READ MORE)
  • iosOnNavigationResponse: Called when a web view asks for permission to navigate to new content after the response to the navigation request is known. (READ MORE)
  • iosOnWebContentProcessDidTerminate: Invoked when the web view's web content process is terminated. (READ MORE)
  • iosShouldAllowDeprecatedTLS: Called when a web view asks whether to continue with a connection that uses a deprecated version of TLS (v1.0 and v1.1). (READ MORE)
  • onAjaxProgress: Event fired as an XMLHttpRequest progress. It gives the host application a chance to abort the request. (READ MORE)
  • onAjaxReadyStateChange: Event fired whenever the readyState attribute of an XMLHttpRequest changes. It gives the host application a chance to abort the request. (READ MORE)
  • onCloseWindow: Event fired when the host application should close the given WebView and remove it from the view system if necessary. At this point, WebCore has stopped any loading in this window and has removed any cross-scripting ability in javascript. (READ MORE)
  • onConsoleMessage: Event fired when the WebView receives a ConsoleMessage. (READ MORE)
  • onCreateWindow: Event fired when the WebView requests the host application to create a new window, for example when trying to open a link with target="_blank" or when window.open() is called by JavaScript side. If the host application chooses to honor this request, it should return true from this method, create a new WebView to host the window. If the host application chooses not to honor the request, it should return false from this method. The default implementation of this method does nothing and hence returns false. (READ MORE)
  • onDownloadStart: Event fired when WebView recognizes a downloadable file. To download the file, you can use the flutter_downloader plugin. (READ MORE)
  • onEnterFullscreen: Event fired when the current page has entered full screen mode. (READ MORE)
  • onExitFullscreen: Event fired when the current page has exited full screen mode. (READ MORE)
  • onFindResultReceived: Event fired as find-on-page operations progress. The listener may be notified multiple times while the operation is underway, and the numberOfMatches value should not be considered final unless isDoneCounting is true. (READ MORE)
  • onJsAlert: Event fired when javascript calls the alert() method to display an alert dialog. If JsAlertResponse.handledByClient is true, the webview will assume that the client will handle the dialog. (READ MORE)
  • onJsConfirm: Event fired when javascript calls the confirm() method to display a confirm dialog. If JsConfirmResponse.handledByClient is true, the webview will assume that the client will handle the dialog. (READ MORE)
  • onJsPrompt: Event fired when javascript calls the prompt() method to display a prompt dialog. If JsPromptResponse.handledByClient is true, the webview will assume that the client will handle the dialog. (READ MORE)
  • onLoadError: Event fired when the WebView encounters an error loading an url. (READ MORE)
  • onLoadHttpError: Event fired when the WebView main page receives an HTTP error. (READ MORE)
  • onLoadResource: Event fired when the WebView loads a resource. (READ MORE)
  • onLoadResourceCustomScheme: Event fired when the WebView finds the custom-scheme while loading a resource. Here you can handle the url request and return a CustomSchemeResponse to load a specific resource encoded to base64. (READ MORE)
  • onLoadStart: Event fired when the WebView starts to load an url. (READ MORE)
  • onLoadStop: Event fired when the WebView finishes loading an url. (READ MORE)
  • onLongPressHitTestResult: Event fired when an HTML element of the webview has been clicked and held. (READ MORE)
  • onOverScrolled: Event fired to respond to the results of an over-scroll operation. (READ MORE)
  • onPageCommitVisible: Called when the web view begins to receive web content. (READ MORE)
  • onPrint: Event fired when window.print() is called from JavaScript side. (READ MORE)
  • onProgressChanged: Event fired when the current progress of loading a page is changed. (READ MORE)
  • onReceivedClientCertRequest: Notify the host application to handle an SSL client certificate request. Webview stores the response in memory (for the life of the application) if ClientCertResponseAction.PROCEED or ClientCertResponseAction.CANCEL is called and does not call onReceivedClientCertRequest again for the same host and port pair. Note that, multiple layers in chromium network stack might be caching the responses. (READ MORE)
  • onReceivedHttpAuthRequest: Event fired when the WebView received an HTTP authentication request. The default behavior is to cancel the request. (READ MORE)
  • onReceivedServerTrustAuthRequest: Event fired when the WebView need to perform server trust authentication (certificate validation). The host application must return either ServerTrustAuthResponse instance with ServerTrustAuthResponseAction.CANCEL or ServerTrustAuthResponseAction.PROCEED. (READ MORE)
  • onScrollChanged: Event fired when the WebView scrolls. (READ MORE)
  • onTitleChanged: Event fired when a change in the document title occurred. (READ MORE)
  • onUpdateVisitedHistory: Event fired when the host application updates its visited links database. This event is also fired when the navigation state of the WebView changes through the usage of javascript History API functions (pushState(), replaceState()) and onpopstate event or, also, when the javascript window.location changes without reloading the webview (for example appending or modifying an hash to the url). (READ MORE)
  • onWebViewCreated: Event fired when the WebView is created. (READ MORE)
  • onWindowBlur: Event fired when the JavaScript window object of the WebView has lost focus. This is the result of the blur JavaScript event applied to the window object. (READ MORE)
  • onWindowFocus: Event fired when the JavaScript window object of the WebView has received focus. This is the result of the focus JavaScript event applied to the window object. (READ MORE)
  • onZoomScaleChanged: Event fired when the zoom scale of the WebView has changed. (READ MORE)
  • shouldInterceptAjaxRequest: Event fired when an XMLHttpRequest is sent to a server. It gives the host application a chance to take control over the request before sending it. (READ MORE)
  • shouldInterceptFetchRequest: Event fired when a request is sent to a server through Fetch API. It gives the host application a chance to take control over the request before sending it. (READ MORE)
  • shouldOverrideUrlLoading: Give the host application a chance to take control when a URL is about to be loaded in the current WebView. This event is not called on the initial load of the WebView. (READ MORE)