PlatformInAppWebViewWidgetCreationParams class

Object specifying creation parameters for creating a PlatformInAppWebViewWidget.

Platform specific implementations can add additional fields by extending this class.

Inheritance

Constructors

PlatformInAppWebViewWidgetCreationParams({Key? key, TextDirection? layoutDirection, Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers, PlatformHeadlessInAppWebView? headlessWebView, InAppWebViewKeepAlive? keepAlive, bool? preventGestureDelay, dynamic controllerFromPlatform(PlatformInAppWebViewController controller)?, int? windowId, void onWebViewCreated(dynamic controller)?, void onLoadStart(dynamic controller, WebUri? url)?, void onLoadStop(dynamic controller, WebUri? url)?, @Deprecated('Use onReceivedError instead') void onLoadError(dynamic controller, Uri? url, int code, String message)?, void onReceivedError(dynamic controller, WebResourceRequest request, WebResourceError error)?, @Deprecated("Use onReceivedHttpError instead") void onLoadHttpError(dynamic controller, Uri? url, int statusCode, String description)?, void onReceivedHttpError(dynamic controller, WebResourceRequest request, WebResourceResponse errorResponse)?, void onProgressChanged(dynamic controller, int progress)?, void onConsoleMessage(dynamic controller, ConsoleMessage consoleMessage)?, Future<NavigationActionPolicy?> shouldOverrideUrlLoading(dynamic controller, NavigationAction navigationAction)?, void onLoadResource(dynamic controller, LoadedResource resource)?, void onScrollChanged(dynamic controller, int x, int y)?, @Deprecated('Use onDownloadStartRequest instead') void onDownloadStart(dynamic controller, Uri url)?, void onDownloadStartRequest(dynamic controller, DownloadStartRequest downloadStartRequest)?, @Deprecated('Use onLoadResourceWithCustomScheme instead') Future<CustomSchemeResponse?> onLoadResourceCustomScheme(dynamic controller, Uri url)?, Future<CustomSchemeResponse?> onLoadResourceWithCustomScheme(dynamic controller, WebResourceRequest request)?, Future<bool?> onCreateWindow(dynamic controller, CreateWindowAction createWindowAction)?, void onCloseWindow(dynamic controller)?, Future<JsAlertResponse?> onJsAlert(dynamic controller, JsAlertRequest jsAlertRequest)?, Future<JsConfirmResponse?> onJsConfirm(dynamic controller, JsConfirmRequest jsConfirmRequest)?, Future<JsPromptResponse?> onJsPrompt(dynamic controller, JsPromptRequest jsPromptRequest)?, Future<HttpAuthResponse?> onReceivedHttpAuthRequest(dynamic controller, HttpAuthenticationChallenge challenge)?, Future<ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(dynamic controller, ServerTrustChallenge challenge)?, Future<ClientCertResponse?> onReceivedClientCertRequest(dynamic controller, ClientCertChallenge challenge)?, @Deprecated('Use FindInteractionController.onFindResultReceived instead') void onFindResultReceived(dynamic controller, int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?, Future<AjaxRequest?> shouldInterceptAjaxRequest(dynamic controller, AjaxRequest ajaxRequest)?, Future<AjaxRequestAction?> onAjaxReadyStateChange(dynamic controller, AjaxRequest ajaxRequest)?, Future<AjaxRequestAction?> onAjaxProgress(dynamic controller, AjaxRequest ajaxRequest)?, Future<FetchRequest?> shouldInterceptFetchRequest(dynamic controller, FetchRequest fetchRequest)?, void onUpdateVisitedHistory(dynamic controller, WebUri? url, bool? isReload)?, @Deprecated("Use onPrintRequest instead") void onPrint(dynamic controller, Uri? url)?, Future<bool?> onPrintRequest(dynamic controller, WebUri? url, PlatformPrintJobController? printJobController)?, void onLongPressHitTestResult(dynamic controller, InAppWebViewHitTestResult hitTestResult)?, void onEnterFullscreen(dynamic controller)?, void onExitFullscreen(dynamic controller)?, void onPageCommitVisible(dynamic controller, WebUri? url)?, void onTitleChanged(dynamic controller, String? title)?, void onWindowFocus(dynamic controller)?, void onWindowBlur(dynamic controller)?, void onOverScrolled(dynamic controller, int x, int y, bool clampedX, bool clampedY)?, void onZoomScaleChanged(dynamic controller, double oldScale, double newScale)?, @Deprecated('Use onSafeBrowsingHit instead') Future<SafeBrowsingResponse?> androidOnSafeBrowsingHit(dynamic controller, Uri url, SafeBrowsingThreat? threatType)?, Future<SafeBrowsingResponse?> onSafeBrowsingHit(dynamic controller, WebUri url, SafeBrowsingThreat? threatType)?, @Deprecated('Use onPermissionRequest instead') Future<PermissionRequestResponse?> androidOnPermissionRequest(dynamic controller, String origin, List<String> resources)?, Future<PermissionResponse?> onPermissionRequest(dynamic controller, PermissionRequest permissionRequest)?, @Deprecated('Use onGeolocationPermissionsShowPrompt instead') Future<GeolocationPermissionShowPromptResponse?> androidOnGeolocationPermissionsShowPrompt(dynamic controller, String origin)?, Future<GeolocationPermissionShowPromptResponse?> onGeolocationPermissionsShowPrompt(dynamic controller, String origin)?, @Deprecated('Use onGeolocationPermissionsHidePrompt instead') void androidOnGeolocationPermissionsHidePrompt(dynamic controller)?, void onGeolocationPermissionsHidePrompt(dynamic controller)?, @Deprecated('Use shouldInterceptRequest instead') Future<WebResourceResponse?> androidShouldInterceptRequest(dynamic controller, WebResourceRequest request)?, Future<WebResourceResponse?> shouldInterceptRequest(dynamic controller, WebResourceRequest request)?, @Deprecated('Use onRenderProcessGone instead') void androidOnRenderProcessGone(dynamic controller, RenderProcessGoneDetail detail)?, void onRenderProcessGone(dynamic controller, RenderProcessGoneDetail detail)?, @Deprecated('Use onRenderProcessResponsive instead') Future<WebViewRenderProcessAction?> androidOnRenderProcessResponsive(dynamic controller, Uri? url)?, Future<WebViewRenderProcessAction?> onRenderProcessResponsive(dynamic controller, WebUri? url)?, @Deprecated('Use onRenderProcessUnresponsive instead') Future<WebViewRenderProcessAction?> androidOnRenderProcessUnresponsive(dynamic controller, Uri? url)?, Future<WebViewRenderProcessAction?> onRenderProcessUnresponsive(dynamic controller, WebUri? url)?, @Deprecated('Use onFormResubmission instead') Future<FormResubmissionAction?> androidOnFormResubmission(dynamic controller, Uri? url)?, Future<FormResubmissionAction?> onFormResubmission(dynamic controller, WebUri? url)?, @Deprecated('Use onZoomScaleChanged instead') void androidOnScaleChanged(dynamic controller, double oldScale, double newScale)?, @Deprecated('Use onReceivedIcon instead') void androidOnReceivedIcon(dynamic controller, Uint8List icon)?, void onReceivedIcon(dynamic controller, Uint8List icon)?, @Deprecated('Use onReceivedTouchIconUrl instead') void androidOnReceivedTouchIconUrl(dynamic controller, Uri url, bool precomposed)?, void onReceivedTouchIconUrl(dynamic controller, WebUri url, bool precomposed)?, @Deprecated('Use onJsBeforeUnload instead') Future<JsBeforeUnloadResponse?> androidOnJsBeforeUnload(dynamic controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)?, Future<JsBeforeUnloadResponse?> onJsBeforeUnload(dynamic controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)?, @Deprecated('Use onReceivedLoginRequest instead') void androidOnReceivedLoginRequest(dynamic controller, LoginRequest loginRequest)?, void onReceivedLoginRequest(dynamic controller, LoginRequest loginRequest)?, void onPermissionRequestCanceled(dynamic controller, PermissionRequest permissionRequest)?, void onRequestFocus(dynamic controller)?, @Deprecated('Use onWebContentProcessDidTerminate instead') void iosOnWebContentProcessDidTerminate(dynamic controller)?, void onWebContentProcessDidTerminate(dynamic controller)?, @Deprecated('Use onDidReceiveServerRedirectForProvisionalNavigation instead') void iosOnDidReceiveServerRedirectForProvisionalNavigation(dynamic controller)?, void onDidReceiveServerRedirectForProvisionalNavigation(dynamic controller)?, @Deprecated('Use onNavigationResponse instead') Future<IOSNavigationResponseAction?> iosOnNavigationResponse(dynamic controller, IOSWKNavigationResponse navigationResponse)?, Future<NavigationResponseAction?> onNavigationResponse(dynamic controller, NavigationResponse navigationResponse)?, @Deprecated('Use shouldAllowDeprecatedTLS instead') Future<IOSShouldAllowDeprecatedTLSAction?> iosShouldAllowDeprecatedTLS(dynamic controller, URLAuthenticationChallenge challenge)?, Future<ShouldAllowDeprecatedTLSAction?> shouldAllowDeprecatedTLS(dynamic controller, URLAuthenticationChallenge challenge)?, Future<void> onCameraCaptureStateChanged(dynamic controller, MediaCaptureState? oldState, MediaCaptureState? newState)?, Future<void> onMicrophoneCaptureStateChanged(dynamic controller, MediaCaptureState? oldState, MediaCaptureState? newState)?, void onContentSizeChanged(dynamic controller, Size oldContentSize, Size newContentSize)?, URLRequest? initialUrlRequest, String? initialFile, InAppWebViewInitialData? initialData, @Deprecated('Use initialSettings instead') InAppWebViewGroupOptions? initialOptions, InAppWebViewSettings? initialSettings, ContextMenu? contextMenu, UnmodifiableListView<UserScript>? initialUserScripts, PlatformPullToRefreshController? pullToRefreshController, PlatformFindInteractionController? findInteractionController})
Used by the platform implementation to create a new PlatformInAppWebViewWidget.

Properties

androidOnFormResubmission → (Future<FormResubmissionAction?> Function(dynamic controller, Uri? url)?)
Use onFormResubmission instead.
finalinherited
androidOnGeolocationPermissionsHidePrompt → (void Function(dynamic controller)?)
Use onGeolocationPermissionsHidePrompt instead.
finalinherited
androidOnGeolocationPermissionsShowPrompt → (Future<GeolocationPermissionShowPromptResponse?> Function(dynamic controller, String origin)?)
Use onGeolocationPermissionsShowPrompt instead.
finalinherited
androidOnJsBeforeUnload → (Future<JsBeforeUnloadResponse?> Function(dynamic controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)?)
Use onJsBeforeUnload instead.
finalinherited
androidOnPermissionRequest → (Future<PermissionRequestResponse?> Function(dynamic controller, String origin, List<String> resources)?)
Use onPermissionRequest instead.
finalinherited
androidOnReceivedIcon → (void Function(dynamic controller, Uint8List icon)?)
Use onReceivedIcon instead.
finalinherited
androidOnReceivedLoginRequest → (void Function(dynamic controller, LoginRequest loginRequest)?)
Use onReceivedLoginRequest instead.
finalinherited
androidOnReceivedTouchIconUrl → (void Function(dynamic controller, Uri url, bool precomposed)?)
Use onReceivedTouchIconUrl instead.
finalinherited
androidOnRenderProcessGone → (void Function(dynamic controller, RenderProcessGoneDetail detail)?)
Use onRenderProcessGone instead.
finalinherited
androidOnRenderProcessResponsive → (Future<WebViewRenderProcessAction?> Function(dynamic controller, Uri? url)?)
Use onRenderProcessResponsive instead.
finalinherited
androidOnRenderProcessUnresponsive → (Future<WebViewRenderProcessAction?> Function(dynamic controller, Uri? url)?)
Use onRenderProcessUnresponsive instead.
finalinherited
androidOnSafeBrowsingHit → (Future<SafeBrowsingResponse?> Function(dynamic controller, Uri url, SafeBrowsingThreat? threatType)?)
Use onSafeBrowsingHit instead.
finalinherited
androidOnScaleChanged → (void Function(dynamic controller, double oldScale, double newScale)?)
Use onZoomScaleChanged instead.
finalinherited
androidShouldInterceptRequest → (Future<WebResourceResponse?> Function(dynamic controller, WebResourceRequest request)?)
Use shouldInterceptRequest instead.
finalinherited
contextMenu ContextMenu?
Context menu which contains custom menu items to be shown when ContextMenu is presented.
finalinherited
controllerFromPlatform → (dynamic Function(PlatformInAppWebViewController controller)?)
finalinherited
findInteractionController PlatformFindInteractionController?
Represents the find interaction feature controller.
finalinherited
gestureRecognizers Set<Factory<OneSequenceGestureRecognizer>>?
The gestureRecognizers specifies which gestures should be consumed by the web view.
final
hashCode int
The hash code for this object.
no setterinherited
headlessWebView PlatformHeadlessInAppWebView?
The PlatformHeadlessInAppWebView to use to initialize this widget.
final
initialData InAppWebViewInitialData?
Initial InAppWebViewInitialData that will be loaded.
finalinherited
initialFile String?
Initial asset file that will be loaded. See InAppWebViewController.loadFile for explanation.
finalinherited
initialOptions InAppWebViewGroupOptions?
Use initialSettings instead.
finalinherited
initialSettings InAppWebViewSettings?
Initial settings that will be used.
finalinherited
initialUrlRequest URLRequest?
Initial url request that will be loaded.
finalinherited
initialUserScripts UnmodifiableListView<UserScript>?
Initial list of user scripts to be loaded at start or end of a page loading. To add or remove user scripts, you have to use the InAppWebViewController's methods such as InAppWebViewController.addUserScript, InAppWebViewController.removeUserScript, InAppWebViewController.removeAllUserScripts, etc.
finalinherited
iosOnDidReceiveServerRedirectForProvisionalNavigation → (void Function(dynamic controller)?)
Use onDidReceiveServerRedirectForProvisionalNavigation instead.
finalinherited
iosOnNavigationResponse → (Future<IOSNavigationResponseAction?> Function(dynamic controller, IOSWKNavigationResponse navigationResponse)?)
Use onNavigationResponse instead.
finalinherited
iosOnWebContentProcessDidTerminate → (void Function(dynamic controller)?)
Use onWebContentProcessDidTerminate instead.
finalinherited
iosShouldAllowDeprecatedTLS → (Future<IOSShouldAllowDeprecatedTLSAction?> Function(dynamic controller, URLAuthenticationChallenge challenge)?)
Use shouldAllowDeprecatedTLS instead.
finalinherited
keepAlive InAppWebViewKeepAlive?
Used to keep alive this WebView. Remember to dispose the InAppWebViewKeepAlive instance using InAppWebViewController.disposeKeepAlive.
final
key Key?
Controls how one widget replaces another widget in the tree.
final
layoutDirection TextDirection?
The layout direction to use for the embedded WebView.
final
onAjaxProgress → (Future<AjaxRequestAction?> Function(dynamic controller, AjaxRequest ajaxRequest)?)
Event fired as an XMLHttpRequest progress. It gives the host application a chance to abort the request.
finalinherited
onAjaxReadyStateChange → (Future<AjaxRequestAction?> Function(dynamic controller, AjaxRequest ajaxRequest)?)
Event fired whenever the readyState attribute of an XMLHttpRequest changes. It gives the host application a chance to abort the request.
finalinherited
onCameraCaptureStateChanged → (Future<void> Function(dynamic controller, MediaCaptureState? oldState, MediaCaptureState? newState)?)
Event fired when a change in the camera capture state occurred.
finalinherited
onCloseWindow → (void Function(dynamic controller)?)
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.
finalinherited
onConsoleMessage → (void Function(dynamic controller, ConsoleMessage consoleMessage)?)
Event fired when the WebView receives a ConsoleMessage.
finalinherited
onContentSizeChanged → (void Function(dynamic controller, Size oldContentSize, Size newContentSize)?)
Event fired when the content size of the WebView changes.
finalinherited
onCreateWindow → (Future<bool?> Function(dynamic controller, CreateWindowAction createWindowAction)?)
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.
finalinherited
onDidReceiveServerRedirectForProvisionalNavigation → (void Function(dynamic controller)?)
Called when a web view receives a server redirect.
finalinherited
onDownloadStart → (void Function(dynamic controller, Uri url)?)
Use onDownloadStartRequest instead
finalinherited
onDownloadStartRequest → (void Function(dynamic controller, DownloadStartRequest downloadStartRequest)?)
Event fired when WebView recognizes a downloadable file. To download the file, you can use the flutter_downloader plugin.
finalinherited
onEnterFullscreen → (void Function(dynamic controller)?)
Event fired when the current page has entered full screen mode.
finalinherited
onExitFullscreen → (void Function(dynamic controller)?)
Event fired when the current page has exited full screen mode.
finalinherited
onFindResultReceived → (void Function(dynamic controller, int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?)
Use FindInteractionController.onFindResultReceived instead.
finalinherited
onFormResubmission → (Future<FormResubmissionAction?> Function(dynamic controller, WebUri? url)?)
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.
finalinherited
onGeolocationPermissionsHidePrompt → (void Function(dynamic controller)?)
Notify the host application that a request for Geolocation permissions, made with a previous call to onGeolocationPermissionsShowPrompt has been canceled. Any related UI should therefore be hidden.
finalinherited
onGeolocationPermissionsShowPrompt → (Future<GeolocationPermissionShowPromptResponse?> Function(dynamic controller, String origin)?)
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.
finalinherited
onJsAlert → (Future<JsAlertResponse?> Function(dynamic controller, JsAlertRequest jsAlertRequest)?)
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.
finalinherited
onJsBeforeUnload → (Future<JsBeforeUnloadResponse?> Function(dynamic controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)?)
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.
finalinherited
onJsConfirm → (Future<JsConfirmResponse?> Function(dynamic controller, JsConfirmRequest jsConfirmRequest)?)
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.
finalinherited
onJsPrompt → (Future<JsPromptResponse?> Function(dynamic controller, JsPromptRequest jsPromptRequest)?)
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.
finalinherited
onLoadError → (void Function(dynamic controller, Uri? url, int code, String message)?)
Use onReceivedError instead.
finalinherited
onLoadHttpError → (void Function(dynamic controller, Uri? url, int statusCode, String description)?)
Use onReceivedHttpError instead.
finalinherited
onLoadResource → (void Function(dynamic controller, LoadedResource resource)?)
Event fired when the WebView loads a resource.
finalinherited
onLoadResourceCustomScheme → (Future<CustomSchemeResponse?> Function(dynamic controller, Uri url)?)
Use onLoadResourceWithCustomScheme instead.
finalinherited
onLoadResourceWithCustomScheme → (Future<CustomSchemeResponse?> Function(dynamic controller, WebResourceRequest request)?)
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.
finalinherited
onLoadStart → (void Function(dynamic controller, WebUri? url)?)
Event fired when the WebView starts to load an url.
finalinherited
onLoadStop → (void Function(dynamic controller, WebUri? url)?)
Event fired when the WebView finishes loading an url.
finalinherited
onLongPressHitTestResult → (void Function(dynamic controller, InAppWebViewHitTestResult hitTestResult)?)
Event fired when an HTML element of the webview has been clicked and held.
finalinherited
onMicrophoneCaptureStateChanged → (Future<void> Function(dynamic controller, MediaCaptureState? oldState, MediaCaptureState? newState)?)
Event fired when a change in the microphone capture state occurred.
finalinherited
onNavigationResponse → (Future<NavigationResponseAction?> Function(dynamic controller, NavigationResponse navigationResponse)?)
Called when a web view asks for permission to navigate to new content after the response to the navigation request is known.
finalinherited
onOverScrolled → (void Function(dynamic controller, int x, int y, bool clampedX, bool clampedY)?)
Event fired to respond to the results of an over-scroll operation.
finalinherited
onPageCommitVisible → (void Function(dynamic controller, WebUri? url)?)
Called when the web view begins to receive web content.
finalinherited
onPermissionRequest → (Future<PermissionResponse?> Function(dynamic controller, PermissionRequest permissionRequest)?)
Event fired when the WebView is requesting permission to access the specified resources and the permission currently isn't granted or denied.
finalinherited
onPermissionRequestCanceled → (void Function(dynamic controller, PermissionRequest permissionRequest)?)
Notify the host application that the given permission request has been canceled. Any related UI should therefore be hidden.
finalinherited
onPrint → (void Function(dynamic controller, Uri? url)?)
Use onPrintRequest instead
finalinherited
onPrintRequest → (Future<bool?> Function(dynamic controller, WebUri? url, PlatformPrintJobController? printJobController)?)
Event fired when window.print() is called from JavaScript side. Return true if you want to handle the print job. Otherwise return false, so the PlatformPrintJobController will be handled and disposed automatically by the system.
finalinherited
onProgressChanged → (void Function(dynamic controller, int progress)?)
Event fired when the current progress of loading a page is changed.
finalinherited
onReceivedClientCertRequest → (Future<ClientCertResponse?> Function(dynamic controller, ClientCertChallenge challenge)?)
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.
finalinherited
onReceivedError → (void Function(dynamic controller, WebResourceRequest request, WebResourceError error)?)
Event fired when the WebView encounters an error loading a request.
finalinherited
onReceivedHttpAuthRequest → (Future<HttpAuthResponse?> Function(dynamic controller, HttpAuthenticationChallenge challenge)?)
Event fired when the WebView received an HTTP authentication request. The default behavior is to cancel the request.
finalinherited
onReceivedHttpError → (void Function(dynamic controller, WebResourceRequest request, WebResourceResponse errorResponse)?)
Event fired when the WebView receives an HTTP error.
finalinherited
onReceivedIcon → (void Function(dynamic controller, Uint8List icon)?)
Event fired when there is new favicon for the current page.
finalinherited
onReceivedLoginRequest → (void Function(dynamic controller, LoginRequest loginRequest)?)
Event fired when a request to automatically log in the user has been processed.
finalinherited
onReceivedServerTrustAuthRequest → (Future<ServerTrustAuthResponse?> Function(dynamic controller, ServerTrustChallenge challenge)?)
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.
finalinherited
onReceivedTouchIconUrl → (void Function(dynamic controller, WebUri url, bool precomposed)?)
Event fired when there is an url for an apple-touch-icon.
finalinherited
onRenderProcessGone → (void Function(dynamic controller, RenderProcessGoneDetail detail)?)
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.
finalinherited
onRenderProcessResponsive → (Future<WebViewRenderProcessAction?> Function(dynamic controller, WebUri? url)?)
Event called once when an unresponsive renderer currently associated with the WebView becomes responsive.
finalinherited
onRenderProcessUnresponsive → (Future<WebViewRenderProcessAction?> Function(dynamic controller, WebUri? url)?)
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.
finalinherited
onRequestFocus → (void Function(dynamic controller)?)
Request display and focus for this WebView. This may happen due to another WebView opening a link in this WebView and requesting that this WebView be displayed.
finalinherited
onSafeBrowsingHit → (Future<SafeBrowsingResponse?> Function(dynamic controller, WebUri url, SafeBrowsingThreat? threatType)?)
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.
finalinherited
onScrollChanged → (void Function(dynamic controller, int x, int y)?)
Event fired when the WebView scrolls.
finalinherited
onTitleChanged → (void Function(dynamic controller, String? title)?)
Event fired when a change in the document title occurred.
finalinherited
onUpdateVisitedHistory → (void Function(dynamic controller, WebUri? url, bool? isReload)?)
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 a hash to the url).
finalinherited
onWebContentProcessDidTerminate → (void Function(dynamic controller)?)
Invoked when the web view's web content process is terminated.
finalinherited
onWebViewCreated → (void Function(dynamic controller)?)
Event fired when the WebView is created.
finalinherited
onWindowBlur → (void Function(dynamic controller)?)
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.
finalinherited
onWindowFocus → (void Function(dynamic controller)?)
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.
finalinherited
onZoomScaleChanged → (void Function(dynamic controller, double oldScale, double newScale)?)
Event fired when the zoom scale of the WebView has changed.
finalinherited
preventGestureDelay bool?
Used to prevent gesture delay on iOS caused by Flutter's gestures handling between native/platform views.
final
pullToRefreshController PlatformPullToRefreshController?
Represents the pull-to-refresh feature controller.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldAllowDeprecatedTLS → (Future<ShouldAllowDeprecatedTLSAction?> Function(dynamic controller, URLAuthenticationChallenge challenge)?)
Called when a web view asks whether to continue with a connection that uses a deprecated version of TLS (v1.0 and v1.1).
finalinherited
shouldInterceptAjaxRequest → (Future<AjaxRequest?> Function(dynamic controller, AjaxRequest ajaxRequest)?)
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.
finalinherited
shouldInterceptFetchRequest → (Future<FetchRequest?> Function(dynamic controller, FetchRequest fetchRequest)?)
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.
finalinherited
shouldInterceptRequest → (Future<WebResourceResponse?> Function(dynamic controller, WebResourceRequest request)?)
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.
finalinherited
shouldOverrideUrlLoading → (Future<NavigationActionPolicy?> Function(dynamic controller, NavigationAction navigationAction)?)
Give the host application a chance to take control when a URL is about to be loaded in the current WebView.
finalinherited
windowId int?
The window id of a CreateWindowAction.windowId.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited