PlatformWebViewCreationParams<T> class
Class that represents a WebView. Used by InAppWebView, HeadlessInAppWebView and the WebView of PlatformInAppBrowser.
Constructors
-
PlatformWebViewCreationParams({T controllerFromPlatform(PlatformInAppWebViewController controller)?, int? windowId, void onWebViewCreated(T controller)?, void onLoadStart(T controller, WebUri? url)?, void onLoadStop(T controller, WebUri? url)?, @Deprecated('Use onReceivedError instead') void onLoadError(T controller, Uri? url, int code, String message)?, void onReceivedError(T controller, WebResourceRequest request, WebResourceError error)?, @Deprecated("Use onReceivedHttpError instead") void onLoadHttpError(T controller, Uri? url, int statusCode, String description)?, void onReceivedHttpError(T controller, WebResourceRequest request, WebResourceResponse errorResponse)?, void onProgressChanged(T controller, int progress)?, void onConsoleMessage(T controller, ConsoleMessage consoleMessage)?, Future<
NavigationActionPolicy?> shouldOverrideUrlLoading(T controller, )?, void onLoadResource(T controller, LoadedResource resource)?, void onScrollChanged(T controller, int x, int y)?, @Deprecated('Use onDownloadStartRequest instead') void onDownloadStart(T controller, Uri url)?, void onDownloadStartRequest(T controller, DownloadStartRequest downloadStartRequest)?, @Deprecated('Use onLoadResourceWithCustomScheme instead') Future<CustomSchemeResponse?> onLoadResourceCustomScheme(T controller, Uri url)?, Future<CustomSchemeResponse?> onLoadResourceWithCustomScheme(T controller, WebResourceRequest request)?, Future<bool?> onCreateWindow(T controller, CreateWindowAction createWindowAction)?, void onCloseWindow(T controller)?, Future<JsAlertResponse?> onJsAlert(T controller, JsAlertRequest jsAlertRequest)?, Future<JsConfirmResponse?> onJsConfirm(T controller, JsConfirmRequest jsConfirmRequest)?, Future<JsPromptResponse?> onJsPrompt(T controller, JsPromptRequest jsPromptRequest)?, Future<HttpAuthResponse?> onReceivedHttpAuthRequest(T controller, HttpAuthenticationChallenge challenge)?, Future<ServerTrustAuthResponse?> onReceivedServerTrustAuthRequest(T controller, ServerTrustChallenge challenge)?, Future<ClientCertResponse?> onReceivedClientCertRequest(T controller, ClientCertChallenge challenge)?, @Deprecated('Use FindInteractionController.onFindResultReceived instead') void onFindResultReceived(T controller, int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?, Future<AjaxRequest?> shouldInterceptAjaxRequest(T controller, AjaxRequest ajaxRequest)?, Future<AjaxRequestAction?> onAjaxReadyStateChange(T controller, AjaxRequest ajaxRequest)?, Future<AjaxRequestAction?> onAjaxProgress(T controller, AjaxRequest ajaxRequest)?, Future<FetchRequest?> shouldInterceptFetchRequest(T controller, FetchRequest fetchRequest)?, void onUpdateVisitedHistory(T controller, WebUri? url, bool? isReload)?, @Deprecated("Use onPrintRequest instead") void onPrint(T controller, Uri? url)?, Future<bool?> onPrintRequest(T controller, WebUri? url, PlatformPrintJobController? printJobController)?, void onLongPressHitTestResult(T controller, InAppWebViewHitTestResult hitTestResult)?, void onEnterFullscreen(T controller)?, void onExitFullscreen(T controller)?, void onPageCommitVisible(T controller, WebUri? url)?, void onTitleChanged(T controller, String? title)?, void onWindowFocus(T controller)?, void onWindowBlur(T controller)?, void onOverScrolled(T controller, int x, int y, bool clampedX, bool clampedY)?, void onZoomScaleChanged(T controller, double oldScale, double newScale)?, @Deprecated('Use onSafeBrowsingHit instead') Future<SafeBrowsingResponse?> androidOnSafeBrowsingHit(T controller, Uri url, SafeBrowsingThreat? threatType)?, Future<SafeBrowsingResponse?> onSafeBrowsingHit(T controller, WebUri url, SafeBrowsingThreat? threatType)?, @Deprecated('Use onPermissionRequest instead') Future<PermissionRequestResponse?> androidOnPermissionRequest(T controller, String origin, List<String> resources)?, Future<PermissionResponse?> onPermissionRequest(T controller, PermissionRequest permissionRequest)?, @Deprecated('Use onGeolocationPermissionsShowPrompt instead') Future<GeolocationPermissionShowPromptResponse?> androidOnGeolocationPermissionsShowPrompt(T controller, String origin)?, Future<GeolocationPermissionShowPromptResponse?> onGeolocationPermissionsShowPrompt(T controller, String origin)?, @Deprecated('Use onGeolocationPermissionsHidePrompt instead') void androidOnGeolocationPermissionsHidePrompt(T controller)?, void onGeolocationPermissionsHidePrompt(T controller)?, @Deprecated('Use shouldInterceptRequest instead') Future<WebResourceResponse?> androidShouldInterceptRequest(T controller, WebResourceRequest request)?, Future<WebResourceResponse?> shouldInterceptRequest(T controller, WebResourceRequest request)?, @Deprecated('Use onRenderProcessGone instead') void androidOnRenderProcessGone(T controller, RenderProcessGoneDetail detail)?, void onRenderProcessGone(T controller, RenderProcessGoneDetail detail)?, @Deprecated('Use onRenderProcessResponsive instead') Future<WebViewRenderProcessAction?> androidOnRenderProcessResponsive(T controller, Uri? url)?, Future<WebViewRenderProcessAction?> onRenderProcessResponsive(T controller, WebUri? url)?, @Deprecated('Use onRenderProcessUnresponsive instead') Future<WebViewRenderProcessAction?> androidOnRenderProcessUnresponsive(T controller, Uri? url)?, Future<WebViewRenderProcessAction?> onRenderProcessUnresponsive(T controller, WebUri? url)?, @Deprecated('Use onFormResubmission instead') Future<FormResubmissionAction?> androidOnFormResubmission(T controller, Uri? url)?, Future<FormResubmissionAction?> onFormResubmission(T controller, WebUri? url)?, @Deprecated('Use onZoomScaleChanged instead') void androidOnScaleChanged(T controller, double oldScale, double newScale)?, @Deprecated('Use onReceivedIcon instead') void androidOnReceivedIcon(T controller, Uint8List icon)?, void onReceivedIcon(T controller, Uint8List icon)?, @Deprecated('Use onReceivedTouchIconUrl instead') void androidOnReceivedTouchIconUrl(T controller, Uri url, bool precomposed)?, void onReceivedTouchIconUrl(T controller, WebUri url, bool precomposed)?, @Deprecated('Use onJsBeforeUnload instead') Future<JsBeforeUnloadResponse?> androidOnJsBeforeUnload(T controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)?, Future<JsBeforeUnloadResponse?> onJsBeforeUnload(T controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)?, @Deprecated('Use onReceivedLoginRequest instead') void androidOnReceivedLoginRequest(T controller, LoginRequest loginRequest)?, void onReceivedLoginRequest(T controller, LoginRequest loginRequest)?, void onPermissionRequestCanceled(T controller, PermissionRequest permissionRequest)?, void onRequestFocus(T controller)?, @Deprecated('Use onWebContentProcessDidTerminate instead') void iosOnWebContentProcessDidTerminate(T controller)?, void onWebContentProcessDidTerminate(T controller)?, @Deprecated('Use shouldAllowDeprecatedTLS instead') Future<IOSShouldAllowDeprecatedTLSAction?> iosShouldAllowDeprecatedTLS(T controller, URLAuthenticationChallenge challenge)?, Future<ShouldAllowDeprecatedTLSAction?> shouldAllowDeprecatedTLS(T controller, URLAuthenticationChallenge challenge)?, Future<void> onCameraCaptureStateChanged(T controller, MediaCaptureState? oldState, MediaCaptureState? newState)?, Future<void> onMicrophoneCaptureStateChanged(T controller, MediaCaptureState? oldState, MediaCaptureState? newState)?, void onContentSizeChanged(T 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}) -
Class that represents a WebView. Used by InAppWebView, HeadlessInAppWebView and the WebView of PlatformInAppBrowser.
const
Properties
-
androidOnFormResubmission
→ Future<
FormResubmissionAction?> Function(T controller, Uri? url)? -
Use onFormResubmission instead.
final
- androidOnGeolocationPermissionsHidePrompt → void Function(T controller)?
-
Use onGeolocationPermissionsHidePrompt instead.
final
-
androidOnGeolocationPermissionsShowPrompt
→ Future<
GeolocationPermissionShowPromptResponse?> Function(T controller, String origin)? -
Use onGeolocationPermissionsShowPrompt instead.
final
-
androidOnJsBeforeUnload
→ Future<
JsBeforeUnloadResponse?> Function(T controller, JsBeforeUnloadRequest jsBeforeUnloadRequest)? -
Use onJsBeforeUnload instead.
final
-
androidOnPermissionRequest
→ Future<
PermissionRequestResponse?> Function(T controller, String origin, List<String> resources)? -
Use onPermissionRequest instead.
final
- androidOnReceivedIcon → void Function(T controller, Uint8List icon)?
-
Use onReceivedIcon instead.
final
- androidOnReceivedLoginRequest → void Function(T controller, LoginRequest loginRequest)?
-
Use onReceivedLoginRequest instead.
final
- androidOnReceivedTouchIconUrl → void Function(T controller, Uri url, bool precomposed)?
-
Use onReceivedTouchIconUrl instead.
final
- androidOnRenderProcessGone → void Function(T controller, RenderProcessGoneDetail detail)?
-
Use onRenderProcessGone instead.
final
-
androidOnRenderProcessResponsive
→ Future<
WebViewRenderProcessAction?> Function(T controller, Uri? url)? -
Use onRenderProcessResponsive instead.
final
-
androidOnRenderProcessUnresponsive
→ Future<
WebViewRenderProcessAction?> Function(T controller, Uri? url)? -
Use onRenderProcessUnresponsive instead.
final
-
androidOnSafeBrowsingHit
→ Future<
SafeBrowsingResponse?> Function(T controller, Uri url, SafeBrowsingThreat? threatType)? -
Use onSafeBrowsingHit instead.
final
- androidOnScaleChanged → void Function(T controller, double oldScale, double newScale)?
-
Use onZoomScaleChanged instead.
final
-
androidShouldInterceptRequest
→ Future<
WebResourceResponse?> Function(T controller, WebResourceRequest request)? -
Use shouldInterceptRequest instead.
final
- contextMenu → ContextMenu?
-
Context menu which contains custom menu items to be shown when ContextMenu is presented.
final
- controllerFromPlatform → T Function(PlatformInAppWebViewController controller)?
-
final
- findInteractionController → PlatformFindInteractionController?
-
Represents the find interaction feature controller.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialData → InAppWebViewInitialData?
-
Initial InAppWebViewInitialData that will be loaded.
final
- initialFile → String?
-
Initial asset file that will be loaded. See InAppWebViewController.loadFile for explanation.
final
- initialOptions → InAppWebViewGroupOptions?
-
Use initialSettings instead.
final
- initialSettings → InAppWebViewSettings?
-
Initial settings that will be used.
final
- initialUrlRequest → URLRequest?
-
Initial url request that will be loaded.
final
-
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.
final
-
Use onDidReceiveServerRedirectForProvisionalNavigation instead.
final
-
Use onNavigationResponse instead.
final
- iosOnWebContentProcessDidTerminate → void Function(T controller)?
-
Use onWebContentProcessDidTerminate instead.
final
-
iosShouldAllowDeprecatedTLS
→ Future<
IOSShouldAllowDeprecatedTLSAction?> Function(T controller, URLAuthenticationChallenge challenge)? -
Use shouldAllowDeprecatedTLS instead.
final
-
onAjaxProgress
→ Future<
AjaxRequestAction?> Function(T controller, AjaxRequest ajaxRequest)? -
Event fired as an
XMLHttpRequest
progress. It gives the host application a chance to abort the request.final -
onAjaxReadyStateChange
→ Future<
AjaxRequestAction?> Function(T controller, AjaxRequest ajaxRequest)? -
Event fired whenever the
readyState
attribute of anXMLHttpRequest
changes. It gives the host application a chance to abort the request.final -
onCameraCaptureStateChanged
→ Future<
void> Function(T controller, MediaCaptureState? oldState, MediaCaptureState? newState)? -
Event fired when a change in the camera capture state occurred.
final
- onCloseWindow → void Function(T 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.
final
- onConsoleMessage → void Function(T controller, ConsoleMessage consoleMessage)?
-
Event fired when the
WebView
receives a ConsoleMessage.final - onContentSizeChanged → void Function(T controller, Size oldContentSize, Size newContentSize)?
-
Event fired when the content size of the
WebView
changes.final -
onCreateWindow
→ Future<
bool?> Function(T 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 withtarget="_blank"
or whenwindow.open()
is called by JavaScript side. If the host application chooses to honor this request, it should returntrue
from this method, create a new WebView to host the window. If the host application chooses not to honor the request, it should returnfalse
from this method. The default implementation of this method does nothing and hence returnsfalse
.final -
Called when a web view receives a server redirect.
final
- onDownloadStart → void Function(T controller, Uri url)?
-
Use onDownloadStartRequest instead
final
- onDownloadStartRequest → void Function(T controller, DownloadStartRequest downloadStartRequest)?
-
Event fired when
WebView
recognizes a downloadable file. To download the file, you can use the flutter_downloader plugin.final - onEnterFullscreen → void Function(T controller)?
-
Event fired when the current page has entered full screen mode.
final
- onExitFullscreen → void Function(T controller)?
-
Event fired when the current page has exited full screen mode.
final
- onFindResultReceived → void Function(T controller, int activeMatchOrdinal, int numberOfMatches, bool isDoneCounting)?
-
Use FindInteractionController.onFindResultReceived instead.
final
-
onFormResubmission
→ Future<
FormResubmissionAction?> Function(T 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.
final
- onGeolocationPermissionsHidePrompt → void Function(T 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.
final
-
onGeolocationPermissionsShowPrompt
→ Future<
GeolocationPermissionShowPromptResponse?> Function(T 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.final -
onJsAlert
→ Future<
JsAlertResponse?> Function(T controller, JsAlertRequest jsAlertRequest)? -
Event fired when javascript calls the
alert()
method to display an alert dialog. If JsAlertResponse.handledByClient istrue
, the webview will assume that the client will handle the dialog.final -
onJsBeforeUnload
→ Future<
JsBeforeUnloadResponse?> Function(T 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 istrue
, WebView will assume that the client will handle the confirm dialog. If JsBeforeUnloadResponse.handledByClient isfalse
, a default value oftrue
will be returned to javascript to accept navigation away from the current page. The default behavior is to returnfalse
. Setting the JsBeforeUnloadResponse.action to JsBeforeUnloadResponseAction.CONFIRM will navigate away from the current page, JsBeforeUnloadResponseAction.CANCEL will cancel the navigation.final -
onJsConfirm
→ Future<
JsConfirmResponse?> Function(T controller, JsConfirmRequest jsConfirmRequest)? -
Event fired when javascript calls the
confirm()
method to display a confirm dialog. If JsConfirmResponse.handledByClient istrue
, the webview will assume that the client will handle the dialog.final -
onJsPrompt
→ Future<
JsPromptResponse?> Function(T controller, JsPromptRequest jsPromptRequest)? -
Event fired when javascript calls the
prompt()
method to display a prompt dialog. If JsPromptResponse.handledByClient istrue
, the webview will assume that the client will handle the dialog.final - onLoadError → void Function(T controller, Uri? url, int code, String message)?
-
Use onReceivedError instead.
final
- onLoadHttpError → void Function(T controller, Uri? url, int statusCode, String description)?
-
Use onReceivedHttpError instead.
final
- onLoadResource → void Function(T controller, LoadedResource resource)?
-
Event fired when the
WebView
loads a resource.final -
onLoadResourceCustomScheme
→ Future<
CustomSchemeResponse?> Function(T controller, Uri url)? -
Use onLoadResourceWithCustomScheme instead.
final
-
onLoadResourceWithCustomScheme
→ Future<
CustomSchemeResponse?> Function(T controller, WebResourceRequest request)? -
Event fired when the
WebView
finds thecustom-scheme
while loading a resource. Here you can handle the urlrequest
and return a CustomSchemeResponse to load a specific resource encoded tobase64
.final - onLoadStart → void Function(T controller, WebUri? url)?
-
Event fired when the
WebView
starts to load anurl
.final - onLoadStop → void Function(T controller, WebUri? url)?
-
Event fired when the
WebView
finishes loading anurl
.final - onLongPressHitTestResult → void Function(T controller, InAppWebViewHitTestResult hitTestResult)?
-
Event fired when an HTML element of the webview has been clicked and held.
final
-
onMicrophoneCaptureStateChanged
→ Future<
void> Function(T controller, MediaCaptureState? oldState, MediaCaptureState? newState)? -
Event fired when a change in the microphone capture state occurred.
final
-
Called when a web view asks for permission to navigate to new content after the response to the navigation request is known.
final
- onOverScrolled → void Function(T controller, int x, int y, bool clampedX, bool clampedY)?
-
Event fired to respond to the results of an over-scroll operation.
final
- onPageCommitVisible → void Function(T controller, WebUri? url)?
-
Called when the web view begins to receive web content.
final
-
onPermissionRequest
→ Future<
PermissionResponse?> Function(T 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.
final
- onPermissionRequestCanceled → void Function(T controller, PermissionRequest permissionRequest)?
-
Notify the host application that the given permission request has been canceled. Any related UI should therefore be hidden.
final
- onPrint → void Function(T controller, Uri? url)?
-
Use onPrintRequest instead
final
-
onPrintRequest
→ Future<
bool?> Function(T controller, WebUri? url, PlatformPrintJobController? printJobController)? -
Event fired when
window.print()
is called from JavaScript side. Returntrue
if you want to handle the print job. Otherwise returnfalse
, so the PlatformPrintJobController will be handled and disposed automatically by the system.final - onProgressChanged → void Function(T controller, int progress)?
-
Event fired when the current
progress
of loading a page is changed.final -
onReceivedClientCertRequest
→ Future<
ClientCertResponse?> Function(T 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.
final
- onReceivedError → void Function(T controller, WebResourceRequest request, WebResourceError error)?
-
Event fired when the
WebView
encounters anerror
loading arequest
.final -
onReceivedHttpAuthRequest
→ Future<
HttpAuthResponse?> Function(T controller, HttpAuthenticationChallenge challenge)? -
Event fired when the WebView received an HTTP authentication request. The default behavior is to cancel the request.
final
- onReceivedHttpError → void Function(T controller, WebResourceRequest request, WebResourceResponse errorResponse)?
-
Event fired when the
WebView
receives an HTTP error.final - onReceivedIcon → void Function(T controller, Uint8List icon)?
-
Event fired when there is new favicon for the current page.
final
- onReceivedLoginRequest → void Function(T controller, LoginRequest loginRequest)?
-
Event fired when a request to automatically log in the user has been processed.
final
-
onReceivedServerTrustAuthRequest
→ Future<
ServerTrustAuthResponse?> Function(T 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.
final
- onReceivedTouchIconUrl → void Function(T controller, WebUri url, bool precomposed)?
-
Event fired when there is an url for an apple-touch-icon.
final
- onRenderProcessGone → void Function(T 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.
final
-
onRenderProcessResponsive
→ Future<
WebViewRenderProcessAction?> Function(T controller, WebUri? url)? -
Event called once when an unresponsive renderer currently associated with the WebView becomes responsive.
final
-
onRenderProcessUnresponsive
→ Future<
WebViewRenderProcessAction?> Function(T 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.
final
- onRequestFocus → void Function(T 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.
final
-
onSafeBrowsingHit
→ Future<
SafeBrowsingResponse?> Function(T 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.
final
- onScrollChanged → void Function(T controller, int x, int y)?
-
Event fired when the
WebView
scrolls.final - onTitleChanged → void Function(T controller, String? title)?
-
Event fired when a change in the document title occurred.
final
- onUpdateVisitedHistory → void Function(T 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()
) andonpopstate
event or, also, when the javascriptwindow.location
changes without reloading the webview (for example appending or modifying a hash to the url).final - onWebContentProcessDidTerminate → void Function(T controller)?
-
Invoked when the web view's web content process is terminated.
final
- onWebViewCreated → void Function(T controller)?
-
Event fired when the
WebView
is created.final - onWindowBlur → void Function(T controller)?
-
Event fired when the JavaScript
window
object of the WebView has lost focus. This is the result of theblur
JavaScript event applied to thewindow
object.final - onWindowFocus → void Function(T controller)?
-
Event fired when the JavaScript
window
object of the WebView has received focus. This is the result of thefocus
JavaScript event applied to thewindow
object.final - onZoomScaleChanged → void Function(T controller, double oldScale, double newScale)?
-
Event fired when the zoom scale of the WebView has changed.
final
- pullToRefreshController → PlatformPullToRefreshController?
-
Represents the pull-to-refresh feature controller.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shouldAllowDeprecatedTLS
→ Future<
ShouldAllowDeprecatedTLSAction?> Function(T 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).
final
-
shouldInterceptAjaxRequest
→ Future<
AjaxRequest?> Function(T 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.final -
shouldInterceptFetchRequest
→ Future<
FetchRequest?> Function(T 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.
final
-
shouldInterceptRequest
→ Future<
WebResourceResponse?> Function(T 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.final -
shouldOverrideUrlLoading
→ Future<
NavigationActionPolicy?> Function(T controller, )? -
Give the host application a chance to take control when a URL is about to be loaded in the current WebView.
final
- windowId → int?
-
The window id of a CreateWindowAction.windowId.
final
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