onReceivedHttpError property
void Function(T controller, WebResourceRequest request, WebResourceResponse errorResponse)?
onReceivedHttpError
final
Event fired when the WebView
receives an HTTP error.
request
represents the originating request.
errorResponse
represents the information about the error occurred.
NOTE: available on Android 23+.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebViewClient.onReceivedHttpError)
- iOS (Official API - WKNavigationDelegate.webView)
- MacOS (Official API - WKNavigationDelegate.webView)
- Windows (Official API - ICoreWebView2.add_NavigationCompleted)
Implementation
final void Function(T controller, WebResourceRequest request,
WebResourceResponse errorResponse)? onReceivedHttpError;