PlatformWebViewCreationParamsProperty enum
List of PlatformWebViewCreationParams's properties that can be used to check i they are supported or not by the current platform.
Values
- androidOnFormResubmission → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnFormResubmission property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnGeolocationPermissionsHidePrompt → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnGeolocationPermissionsHidePrompt property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnGeolocationPermissionsShowPrompt → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnGeolocationPermissionsShowPrompt property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
origin: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnJsBeforeUnload → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnJsBeforeUnload property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
jsBeforeUnloadRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnPermissionRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnPermissionRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
origin: all platformsresources: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnReceivedIcon → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnReceivedIcon property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
icon: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnReceivedLoginRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnReceivedLoginRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
loginRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnReceivedTouchIconUrl → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnReceivedTouchIconUrl property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platformsprecomposed: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnRenderProcessGone → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnRenderProcessGone property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
detail: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnRenderProcessResponsive → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnRenderProcessResponsive property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnRenderProcessUnresponsive → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnRenderProcessUnresponsive property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnSafeBrowsingHit → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnSafeBrowsingHit property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platformsthreatType: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidOnScaleChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidOnScaleChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
oldScale: all platformsnewScale: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- androidShouldInterceptRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.androidShouldInterceptRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- contextMenu → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.contextMenu property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- findInteractionController → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.findInteractionController property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit (Official API - WebKitFindController)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- initialData → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.initialData property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe>
- Windows WebView2
- Linux WPE WebKit
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- initialFile → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.initialFile property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe>
- Windows WebView2
- Linux WPE WebKit
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- initialOptions → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.initialOptions property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- initialSettings → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.initialSettings property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe>
- Windows WebView2
- Linux WPE WebKit
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- initialUrlRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.initialUrlRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- When loading an URL Request using "POST" method, headers are ignored.
- iOS WKWebView
- macOS WKWebView
- Web <iframe>
- Windows WebView2
- Linux WPE WebKit
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- initialUserScripts → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.initialUserScripts property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView:
- This property will be ignored if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to iOS window WebViews. This is a limitation of the native WebKit APIs.
- macOS WKWebView:
- This property will be ignored if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to iOS window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
- Linux WPE WebKit (Official API - WebKitUserContentManager)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
-
Can be used to check if the PlatformWebViewCreationParams.iosOnDidReceiveServerRedirectForProvisionalNavigation property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
-
Can be used to check if the PlatformWebViewCreationParams.iosOnNavigationResponse property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
navigationResponse: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- iosOnWebContentProcessDidTerminate → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.iosOnWebContentProcessDidTerminate property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- iosShouldAllowDeprecatedTLS → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.iosShouldAllowDeprecatedTLS property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onAcceleratorKeyPressed → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onAcceleratorKeyPressed property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2Controller.add_AcceleratorKeyPressed)
Parameters - Officially Supported Platforms/Implementations:
detail: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onAjaxProgress → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onAjaxProgress property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest and InAppWebViewSettings.useOnAjaxProgress settings documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
window.addEventListener("flutterInAppWebViewPlatformReady")event is dispatched, the ajax requests can be intercept for sure.
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest and InAppWebViewSettings.useOnAjaxProgress settings documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit:
- This event is implemented using JavaScript. In order to be able to listen to this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest and InAppWebViewSettings.useOnAjaxProgress settings documentation.
Parameters - Officially Supported Platforms/Implementations:
ajaxRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- onAjaxReadyStateChange → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onAjaxReadyStateChange property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest and InAppWebViewSettings.useOnAjaxReadyStateChange settings documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
window.addEventListener("flutterInAppWebViewPlatformReady")event is dispatched, the ajax requests can be intercept for sure.
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest and InAppWebViewSettings.useOnAjaxReadyStateChange settings documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit:
- This event is implemented using JavaScript. In order to be able to listen to this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest and InAppWebViewSettings.useOnAjaxReadyStateChange settings documentation.
Parameters - Officially Supported Platforms/Implementations:
ajaxRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- onCameraCaptureStateChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onCameraCaptureStateChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+
- macOS WKWebView 12.0+
- Linux WPE WebKit (Official API - WebKitWebView::notify::camera-capture-state):
- Requires WPE WebKit 2.34 or later.
Parameters - Officially Supported Platforms/Implementations:
oldState: all platformsnewState: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onCloseWindow → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onCloseWindow property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onCloseWindow)
- iOS WKWebView (Official API - WKUIDelegate.webViewDidClose)
- macOS WKWebView (Official API - WKUIDelegate.webViewDidClose)
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2.add_WindowCloseRequested)
- Linux WPE WebKit (Official API - WebKitWebView::close)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onConsoleMessage → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onConsoleMessage property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onConsoleMessage)
- iOS WKWebView:
- This event is implemented using JavaScript.
- macOS WKWebView:
- This event is implemented using JavaScript.
- Web <iframe> but requires same origin
- Windows WebView2
- Linux WPE WebKit:
- This event is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
consoleMessage: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onContentLoading → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onContentLoading property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2.add_ContentLoading)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onContentSizeChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onContentSizeChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
- Linux WPE WebKit:
- This event is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
oldContentSize: all platformsnewContentSize: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onCreateWindow → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onCreateWindow property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onCreateWindow):
- You need to set InAppWebViewSettings.supportMultipleWindows setting to
true. Also, if the request has been created using JavaScript (window.open()), then there are some limitation: check the NavigationAction class.
- You need to set InAppWebViewSettings.supportMultipleWindows setting to
- iOS WKWebView (Official API - WKUIDelegate.webView):
- Setting these initial settings InAppWebViewSettings.supportZoom, InAppWebViewSettings.useOnLoadResource, InAppWebViewSettings.useShouldInterceptAjaxRequest, InAppWebViewSettings.useShouldInterceptFetchRequest, InAppWebViewSettings.applicationNameForUserAgent, InAppWebViewSettings.javaScriptCanOpenWindowsAutomatically, InAppWebViewSettings.javaScriptEnabled, InAppWebViewSettings.minimumFontSize, InAppWebViewSettings.preferredContentMode, InAppWebViewSettings.incognito, InAppWebViewSettings.cacheEnabled, InAppWebViewSettings.mediaPlaybackRequiresUserGesture, InAppWebViewSettings.resourceCustomSchemes, InAppWebViewSettings.sharedCookiesEnabled, InAppWebViewSettings.enableViewportScale, InAppWebViewSettings.allowsAirPlayForMediaPlayback, InAppWebViewSettings.allowsPictureInPictureMediaPlayback, InAppWebViewSettings.isFraudulentWebsiteWarningEnabled, InAppWebViewSettings.allowsInlineMediaPlayback, InAppWebViewSettings.suppressesIncrementalRendering, InAppWebViewSettings.selectionGranularity, InAppWebViewSettings.ignoresViewportScaleLimits, InAppWebViewSettings.limitsNavigationsToAppBoundDomains, InAppWebViewSettings.upgradeKnownHostsToHTTPS, will have no effect due to a
WKWebViewlimitation when creating the new window WebView: it's impossible to return the newWKWebViewwith a differentWKWebViewConfigurationinstance (see https://developer.apple.com/documentation/webkit/wkuidelegate/1536907-webview). So, these options will be inherited from the caller WebView. Also, note that calling InAppWebViewController.setSettings method using the controller of the new created WebView, it will update also the WebView options of the caller WebView.
- Setting these initial settings InAppWebViewSettings.supportZoom, InAppWebViewSettings.useOnLoadResource, InAppWebViewSettings.useShouldInterceptAjaxRequest, InAppWebViewSettings.useShouldInterceptFetchRequest, InAppWebViewSettings.applicationNameForUserAgent, InAppWebViewSettings.javaScriptCanOpenWindowsAutomatically, InAppWebViewSettings.javaScriptEnabled, InAppWebViewSettings.minimumFontSize, InAppWebViewSettings.preferredContentMode, InAppWebViewSettings.incognito, InAppWebViewSettings.cacheEnabled, InAppWebViewSettings.mediaPlaybackRequiresUserGesture, InAppWebViewSettings.resourceCustomSchemes, InAppWebViewSettings.sharedCookiesEnabled, InAppWebViewSettings.enableViewportScale, InAppWebViewSettings.allowsAirPlayForMediaPlayback, InAppWebViewSettings.allowsPictureInPictureMediaPlayback, InAppWebViewSettings.isFraudulentWebsiteWarningEnabled, InAppWebViewSettings.allowsInlineMediaPlayback, InAppWebViewSettings.suppressesIncrementalRendering, InAppWebViewSettings.selectionGranularity, InAppWebViewSettings.ignoresViewportScaleLimits, InAppWebViewSettings.limitsNavigationsToAppBoundDomains, InAppWebViewSettings.upgradeKnownHostsToHTTPS, will have no effect due to a
- macOS WKWebView (Official API - WKUIDelegate.webView):
- Setting these initial settings InAppWebViewSettings.supportZoom, InAppWebViewSettings.useOnLoadResource, InAppWebViewSettings.useShouldInterceptAjaxRequest, InAppWebViewSettings.useShouldInterceptFetchRequest, InAppWebViewSettings.applicationNameForUserAgent, InAppWebViewSettings.javaScriptCanOpenWindowsAutomatically, InAppWebViewSettings.javaScriptEnabled, InAppWebViewSettings.minimumFontSize, InAppWebViewSettings.preferredContentMode, InAppWebViewSettings.incognito, InAppWebViewSettings.cacheEnabled, InAppWebViewSettings.mediaPlaybackRequiresUserGesture, InAppWebViewSettings.resourceCustomSchemes, InAppWebViewSettings.sharedCookiesEnabled, InAppWebViewSettings.enableViewportScale, InAppWebViewSettings.allowsAirPlayForMediaPlayback, InAppWebViewSettings.allowsPictureInPictureMediaPlayback, InAppWebViewSettings.isFraudulentWebsiteWarningEnabled, InAppWebViewSettings.allowsInlineMediaPlayback, InAppWebViewSettings.suppressesIncrementalRendering, InAppWebViewSettings.selectionGranularity, InAppWebViewSettings.ignoresViewportScaleLimits, InAppWebViewSettings.limitsNavigationsToAppBoundDomains, InAppWebViewSettings.upgradeKnownHostsToHTTPS, will have no effect due to a
WKWebViewlimitation when creating the new window WebView: it's impossible to return the newWKWebViewwith a differentWKWebViewConfigurationinstance (see https://developer.apple.com/documentation/webkit/wkuidelegate/1536907-webview). So, these options will be inherited from the caller WebView. Also, note that calling InAppWebViewController.setSettings method using the controller of the new created WebView, it will update also the WebView options of the caller WebView.
- Setting these initial settings InAppWebViewSettings.supportZoom, InAppWebViewSettings.useOnLoadResource, InAppWebViewSettings.useShouldInterceptAjaxRequest, InAppWebViewSettings.useShouldInterceptFetchRequest, InAppWebViewSettings.applicationNameForUserAgent, InAppWebViewSettings.javaScriptCanOpenWindowsAutomatically, InAppWebViewSettings.javaScriptEnabled, InAppWebViewSettings.minimumFontSize, InAppWebViewSettings.preferredContentMode, InAppWebViewSettings.incognito, InAppWebViewSettings.cacheEnabled, InAppWebViewSettings.mediaPlaybackRequiresUserGesture, InAppWebViewSettings.resourceCustomSchemes, InAppWebViewSettings.sharedCookiesEnabled, InAppWebViewSettings.enableViewportScale, InAppWebViewSettings.allowsAirPlayForMediaPlayback, InAppWebViewSettings.allowsPictureInPictureMediaPlayback, InAppWebViewSettings.isFraudulentWebsiteWarningEnabled, InAppWebViewSettings.allowsInlineMediaPlayback, InAppWebViewSettings.suppressesIncrementalRendering, InAppWebViewSettings.selectionGranularity, InAppWebViewSettings.ignoresViewportScaleLimits, InAppWebViewSettings.limitsNavigationsToAppBoundDomains, InAppWebViewSettings.upgradeKnownHostsToHTTPS, will have no effect due to a
- Web <iframe> but requires same origin:
- It works only for
window.open()javascript calls. Also, there is no way to block the opening the window in a synchronous way, so returningtruewill just close it quickly.
- It works only for
- Windows WebView2 (Official API - ICoreWebView2.add_NewWindowRequested)
- Linux WPE WebKit (Official API - WebKitWebView::create):
- Creates a new InAppWebView with related-view for multi-window support.
Parameters - Officially Supported Platforms/Implementations:
createWindowAction: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView (Official API - WebChromeClient.onCreateWindow):
- onDOMContentLoaded → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onDOMContentLoaded property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_2.add_DOMContentLoaded)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
-
Can be used to check if the PlatformWebViewCreationParams.onDidReceiveServerRedirectForProvisionalNavigation property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onDownloadStart → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onDownloadStart property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onDownloadStartRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onDownloadStartRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
downloadStartRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onDownloadStarting → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onDownloadStarting property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.setDownloadListener
- iOS WKWebView
- macOS WKWebView
- Windows WebView2 (Official API - ICoreWebView2_4.add_DownloadStarting)
- Linux WPE WebKit (Official API - WebKitWebView::decide-policy):
- Downloads are detected via WEBKIT_POLICY_DECISION_TYPE_RESPONSE.
Parameters - Officially Supported Platforms/Implementations:
downloadStartRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onEnterFullscreen → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onEnterFullscreen property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onShowCustomView)
- iOS WKWebView (Official API - UIWindow.didBecomeVisibleNotification)
- macOS WKWebView (Official API - NSWindow.didEnterFullScreenNotification)
- Web <iframe> but requires same origin (Official API - Document.onfullscreenchange)
- Windows WebView2 (Official API - ICoreWebView2.add_ContainsFullScreenElementChanged)
- Linux WPE WebKit (Official API - WebKitWebView::enter-fullscreen)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onExitFullscreen → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onExitFullscreen property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onHideCustomView)
- iOS WKWebView (Official API - UIWindow.didBecomeHiddenNotification)
- macOS WKWebView (Official API - NSWindow.didExitFullScreenNotification)
- Web <iframe> but requires same origin (Official API - Document.onfullscreenchange)
- Windows WebView2 (Official API - ICoreWebView2.add_ContainsFullScreenElementChanged)
- Linux WPE WebKit (Official API - WebKitWebView::leave-fullscreen)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onFaviconChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onFaviconChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedIcon)
- Windows WebView2 (Official API - ICoreWebView2_15.add_FaviconChanged)
Parameters - Officially Supported Platforms/Implementations:
faviconChangedRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onFindResultReceived → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onFindResultReceived property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
activeMatchOrdinal: all platformsnumberOfMatches: all platformsisDoneCounting: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onFormResubmission → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onFormResubmission property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onFormResubmission)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onGeolocationPermissionsHidePrompt → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onGeolocationPermissionsHidePrompt property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onGeolocationPermissionsHidePrompt)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onGeolocationPermissionsShowPrompt → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onGeolocationPermissionsShowPrompt property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onGeolocationPermissionsShowPrompt)
- iOS WKWebView 27.0+ (Official API - WKUIDelegate.webView(_:requestGeolocationPermissionFor:initiatedByFrame:decisionHandler:))
Parameters - Officially Supported Platforms/Implementations:
origin: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onJsAlert → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onJsAlert property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onJsAlert)
- iOS WKWebView (Official API - WKUIDelegate.webView)
- macOS WKWebView (Official API - WKUIDelegate.webView)
- Linux WPE WebKit (Official API - WebKitWebView::script-dialog):
- Handles WEBKIT_SCRIPT_DIALOG_ALERT dialog type.
Parameters - Officially Supported Platforms/Implementations:
jsAlertRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onJsBeforeUnload → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onJsBeforeUnload property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onJsBeforeUnload)
- Linux WPE WebKit (Official API - WebKitWebView::script-dialog):
- Handles WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM dialog type.
Parameters - Officially Supported Platforms/Implementations:
jsBeforeUnloadRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onJsConfirm → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onJsConfirm property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onJsConfirm)
- iOS WKWebView (Official API - WKUIDelegate.webView)
- macOS WKWebView (Official API - WKUIDelegate.webView)
- Linux WPE WebKit (Official API - WebKitWebView::script-dialog):
- Handles WEBKIT_SCRIPT_DIALOG_CONFIRM dialog type.
Parameters - Officially Supported Platforms/Implementations:
jsConfirmRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onJsPrompt → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onJsPrompt property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onJsPrompt)
- iOS WKWebView (Official API - WKUIDelegate.webView)
- macOS WKWebView (Official API - WKUIDelegate.webView)
- Linux WPE WebKit (Official API - WebKitWebView::script-dialog):
- Handles WEBKIT_SCRIPT_DIALOG_PROMPT dialog type.
Parameters - Officially Supported Platforms/Implementations:
jsPromptRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLaunchingExternalUriScheme → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLaunchingExternalUriScheme property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_18.add_LaunchingExternalUriScheme)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLoadError → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadError property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platformscode: all platformsmessage: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLoadHttpError → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadHttpError property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platformsstatusCode: all platformsdescription: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLoadResource → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadResource property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- This event is implemented using JavaScript.
- iOS WKWebView:
- This event is implemented using JavaScript.
- macOS WKWebView:
- This event is implemented using JavaScript.
- Linux WPE WebKit:
- This event is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
resource: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- onLoadResourceCustomScheme → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadResourceCustomScheme property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLoadResourceWithCustomScheme → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadResourceWithCustomScheme property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - WKURLSchemeHandler)
- macOS WKWebView (Official API - WKURLSchemeHandler)
- Windows WebView2
- Linux WPE WebKit (Official API - WebKitURISchemeRequest)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLoadStart → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadStart property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onPageStarted)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Web <iframe> but requires same origin:
- It will be dispatched at the same time of onLoadStop event because there isn't any way to capture the real load start event from an iframe. If the current iframe location isn't accessible because of the browser's same-origin policy, the
urlparameter will be null.
- It will be dispatched at the same time of onLoadStop event because there isn't any way to capture the real load start event from an iframe. If the current iframe location isn't accessible because of the browser's same-origin policy, the
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationStarting)
- Linux WPE WebKit (Official API - WebKitWebView::load-changed):
- Fired when WebKitLoadEvent is WEBKIT_LOAD_STARTED.
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLoadStop → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLoadStop property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onPageFinished)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Web <iframe> but requires same origin (Official API - Window.onload):
- If the current iframe location isn't accessible because of the browser's same-origin policy, the
urlparameter will be null.
- If the current iframe location isn't accessible because of the browser's same-origin policy, the
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationCompleted)
- Linux WPE WebKit (Official API - WebKitWebView::load-changed):
- Fired when WebKitLoadEvent is WEBKIT_LOAD_FINISHED.
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onLongPressHitTestResult → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onLongPressHitTestResult property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.setOnLongClickListener)
- iOS WKWebView (Official API - UILongPressGestureRecognizer)
Parameters - Officially Supported Platforms/Implementations:
hitTestResult: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onMicrophoneCaptureStateChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onMicrophoneCaptureStateChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+
- macOS WKWebView 12.0+
- Linux WPE WebKit (Official API - WebKitWebView::notify::microphone-capture-state):
- Requires WPE WebKit 2.34 or later.
Parameters - Officially Supported Platforms/Implementations:
oldState: all platformsnewState: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
-
Can be used to check if the PlatformWebViewCreationParams.onNavigationResponse property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Linux WPE WebKit (Official API - WebKitWebView::decide-policy)
Parameters - Officially Supported Platforms/Implementations:
navigationResponse: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onNotificationReceived → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onNotificationReceived property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_24.add_NotificationReceived)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onOverScrolled → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onOverScrolled property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.onOverScrolled)
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
x: all platformsy: all platformsclampedX: all platformsclampedY: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onPageCommitVisible → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onPageCommitVisible property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onPageCommitVisible)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Linux WPE WebKit (Official API - WebKitWebView::load-changed):
- Fired when WebKitLoadEvent is WEBKIT_LOAD_COMMITTED.
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onPermissionRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onPermissionRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebChromeClient.onPermissionRequest)
- iOS WKWebView 15.0+:
- The default PermissionResponse.action is PermissionResponseAction.PROMPT.
- macOS WKWebView 12.0+:
- The default PermissionResponse.action is PermissionResponseAction.PROMPT.
- Windows WebView2 (Official API - ICoreWebView2.add_PermissionRequested)
- Linux WPE WebKit (Official API - WebKitWebView::permission-request)
Parameters - Officially Supported Platforms/Implementations:
permissionRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onPermissionRequestCanceled → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onPermissionRequestCanceled property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebChromeClient.onPermissionRequestCanceled)
Parameters - Officially Supported Platforms/Implementations:
permissionRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onPrint → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onPrint property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onPrintRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onPrintRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Linux WPE WebKit:
- Intercepted via JavaScript window.print() override.
Parameters - Officially Supported Platforms/Implementations:
url: all platformsprintJobController:- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onProcessFailed → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onProcessFailed property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2.add_ProcessFailed)
Parameters - Officially Supported Platforms/Implementations:
detail: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onProgressChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onProgressChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onProgressChanged)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit (Official API - WebKitWebView::notify::estimated-load-progress)
Parameters - Officially Supported Platforms/Implementations:
progress: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedClientCertRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedClientCertRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onReceivedClientCertRequest)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Windows WebView2 (Official API - ICoreWebView2_5.add_ClientCertificateRequested)
- Linux WPE WebKit (Official API - WebKitAuthenticationRequest with WEBKIT_AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE_REQUESTED):
- WPE WebKit supports client certificate requests via the authenticate signal. Providing a certificate programmatically requires WebKit 2.34+ and the certificate must be loaded from a PEM file. PKCS12 format may not be fully supported. If the certificate cannot be loaded, PROCEED will behave like CANCEL.
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedError → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedError property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onReceivedError)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationCompleted)
- Linux WPE WebKit (Official API - WebKitWebView::load-failed)
Parameters - Officially Supported Platforms/Implementations:
request: all platformserror: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedHttpAuthRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedHttpAuthRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onReceivedHttpAuthRequest)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Windows WebView2 (Official API - ICoreWebView2_10.add_BasicAuthenticationRequested)
- Linux WPE WebKit (Official API - WebKitWebView::authenticate)
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedHttpError → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedHttpError property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 23+ (Official API - WebViewClient.onReceivedHttpError)
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationCompleted)
- Linux WPE WebKit (Official API - WebKitWebView::load-failed):
- HTTP errors are detected during the load-failed signal handling.
Parameters - Officially Supported Platforms/Implementations:
request: all platformserrorResponse: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedIcon → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedIcon property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedIcon)
Parameters - Officially Supported Platforms/Implementations:
icon: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedLoginRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedLoginRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onReceivedLoginRequest)
Parameters - Officially Supported Platforms/Implementations:
loginRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedServerTrustAuthRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedServerTrustAuthRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onReceivedSslError)
- iOS WKWebView (Official API - WKNavigationDelegate.webView):
- To override the certificate verification logic, you have to provide ATS (App Transport Security) exceptions in your iOS/macOS
Info.plist. SeeNSAppTransportSecurityin the Information Property List Key Reference for details.
- To override the certificate verification logic, you have to provide ATS (App Transport Security) exceptions in your iOS/macOS
- macOS WKWebView (Official API - WKNavigationDelegate.webView):
- To override the certificate verification logic, you have to provide ATS (App Transport Security) exceptions in your iOS/macOS
Info.plist. SeeNSAppTransportSecurityin the Information Property List Key Reference for details.
- To override the certificate verification logic, you have to provide ATS (App Transport Security) exceptions in your iOS/macOS
- Windows WebView2 (Official API - ICoreWebView2_14.add_ServerCertificateErrorDetected)
- Linux WPE WebKit (Official API - WebKitWebView::load-failed-with-tls-errors):
- Uses webkit_web_context_allow_tls_certificate_for_host() to allow proceeding with an invalid certificate.
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onReceivedTouchIconUrl → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onReceivedTouchIconUrl property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedTouchIconUrl)
Parameters - Officially Supported Platforms/Implementations:
url: all platformsprecomposed: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onRenderProcessGone → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onRenderProcessGone property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 26+ (Official API - WebViewClient.onRenderProcessGone)
- Windows WebView2 (Official API - ICoreWebView2.add_ProcessFailed)
- Linux WPE WebKit (Official API - WebView.web-process-terminated)
Parameters - Officially Supported Platforms/Implementations:
detail: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onRenderProcessResponsive → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onRenderProcessResponsive property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 29+ (Official API - WebViewRenderProcessClient.onRenderProcessResponsive)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onRenderProcessUnresponsive → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onRenderProcessUnresponsive property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 29+ (Official API - WebViewRenderProcessClient.onRenderProcessUnresponsive)
- Windows WebView2 (Official API - ICoreWebView2.add_ProcessFailed)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onRequestFocus → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onRequestFocus property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onRequestFocus)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onSafeBrowsingHit → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onSafeBrowsingHit property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 27+ (Official API - WebViewClient.onSafeBrowsingHit)
Parameters - Officially Supported Platforms/Implementations:
url: all platformsthreatType: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onSaveAsUIShowing → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onSaveAsUIShowing property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_25.add_SaveAsUIShowing)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onSaveFileSecurityCheckStarting → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onSaveFileSecurityCheckStarting property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_26.add_SaveFileSecurityCheckStarting)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onScreenCaptureStarting → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onScreenCaptureStarting property is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_27.add_ScreenCaptureStarting)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onScrollChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onScrollChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.onScrollChanged)
- iOS WKWebView (Official API - UIScrollViewDelegate.scrollViewDidScroll)
- macOS WKWebView:
- This event is implemented using JavaScript.
- Web <iframe> but requires same origin (Official API - Window.onscroll)
- Linux WPE WebKit:
- This event is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
x: all platformsy: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onShowFileChooser → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onShowFileChooser property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onShowFileChooser)
- Linux WPE WebKit (Official API - WebKitWebView::run-file-chooser)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onTitleChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onTitleChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedTitle)
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2.add_DocumentTitleChanged)
- Linux WPE WebKit (Official API - WebKitWebView::notify::title)
Parameters - Officially Supported Platforms/Implementations:
title: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onUpdateVisitedHistory → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onUpdateVisitedHistory property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.doUpdateVisitedHistory)
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2.add_HistoryChanged)
- Linux WPE WebKit:
- Tracked via load-changed signal and History API JavaScript events.
Parameters - Officially Supported Platforms/Implementations:
url: all platformsisReload:- Android WebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onWebContentProcessDidTerminate → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onWebContentProcessDidTerminate property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKNavigationDelegate.webViewWebContentProcessDidTerminate)
- macOS WKWebView (Official API - WKNavigationDelegate.webViewWebContentProcessDidTerminate)
- Windows WebView2 (Official API - ICoreWebView2.add_ProcessFailed)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onWebViewCreated → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onWebViewCreated property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
- Linux WPE WebKit
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onWindowBlur → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onWindowBlur property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin (Official API - Window.onblur)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onWindowFocus → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onWindowFocus property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin (Official API - Window.onfocus)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- onZoomScaleChanged → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.onZoomScaleChanged property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onScaleChanged)
- iOS WKWebView (Official API - UIScrollViewDelegate.scrollViewDidZoom)
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2Controller.add_ZoomFactorChanged)
- Linux WPE WebKit (Official API - WebKitWebView::notify::zoom-level)
Parameters - Officially Supported Platforms/Implementations:
oldScale: all platformsnewScale: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- pullToRefreshController → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.pullToRefreshController property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- To be able to use the "pull-to-refresh" feature, InAppWebViewSettings.useHybridComposition must be
true.
- To be able to use the "pull-to-refresh" feature, InAppWebViewSettings.useHybridComposition must be
- iOS WKWebView
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- shouldAllowDeprecatedTLS → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.shouldAllowDeprecatedTLS property is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 14.0+ (Official API - WKNavigationDelegate.webView)
- macOS WKWebView 11.0+ (Official API - WKNavigationDelegate.webView)
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- shouldInterceptAjaxRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.shouldInterceptAjaxRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest setting documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
window.addEventListener("flutterInAppWebViewPlatformReady")event is dispatched, the ajax requests can be intercept for sure.
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest setting documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit:
- This event is implemented using JavaScript. In order to be able to listen to this event, check the InAppWebViewSettings.useShouldInterceptAjaxRequest setting documentation.
Parameters - Officially Supported Platforms/Implementations:
ajaxRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- shouldInterceptFetchRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.shouldInterceptFetchRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptFetchRequest setting documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
window.addEventListener("flutterInAppWebViewPlatformReady")event is dispatched, the ajax requests can be intercept for sure.
- In order to be able to listen this event, check the InAppWebViewSettings.useShouldInterceptFetchRequest setting documentation. Also, on Android that doesn't support the WebViewFeature.DOCUMENT_START_SCRIPT, unlike iOS that has WKUserScript that can inject javascript code right after the document element is created but before any other content is loaded, in Android the javascript code used to intercept ajax requests is loaded as soon as possible so it won't be instantaneous as iOS. In that case, after the
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit:
- This event is implemented using JavaScript. In order to be able to listen to this event, check the InAppWebViewSettings.useShouldInterceptFetchRequest setting documentation.
Parameters - Officially Supported Platforms/Implementations:
fetchRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView:
- shouldInterceptRequest → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.shouldInterceptRequest property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.shouldInterceptRequest)
- Windows WebView2 (Official API - ICoreWebView2.add_WebResourceRequested)
- Linux WPE WebKit (Official API - webkit_web_context_register_uri_scheme):
- Request interception is implemented via custom URI scheme handlers.
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- shouldOverrideUrlLoading → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.shouldOverrideUrlLoading property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.shouldOverrideUrlLoading):
- There isn't any way to load an URL for a frame that is not the main frame, so if the request is not for the main frame, the navigation is allowed by default. However, if you want to cancel requests for subframes, you can use the InAppWebViewSettings.regexToCancelSubFramesLoading setting to write a Regular Expression that, if the url request of a subframe matches, then the request of that subframe is canceled. Instead, the InAppWebViewSettings.regexToAllowSyncUrlLoading setting could be used to allow navigation requests synchronously. On Android Forge, HTTP/HTTPS main-frame navigations continue through WebView when this event returns NavigationActionPolicy.ALLOW, preserving the original browsing context. Returning NavigationActionPolicy.CANCEL attempts to stop that in-flight navigation; non-HTTP(S) URLs are reloaded after an
ALLOWbecause Flutter method channels work asynchronously. Also, this event is not called for POST requests and is not called on the first page load.
- There isn't any way to load an URL for a frame that is not the main frame, so if the request is not for the main frame, the navigation is allowed by default. However, if you want to cancel requests for subframes, you can use the InAppWebViewSettings.regexToCancelSubFramesLoading setting to write a Regular Expression that, if the url request of a subframe matches, then the request of that subframe is canceled. Instead, the InAppWebViewSettings.regexToAllowSyncUrlLoading setting could be used to allow navigation requests synchronously. On Android Forge, HTTP/HTTPS main-frame navigations continue through WebView when this event returns NavigationActionPolicy.ALLOW, preserving the original browsing context. Returning NavigationActionPolicy.CANCEL attempts to stop that in-flight navigation; non-HTTP(S) URLs are reloaded after an
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
- Windows WebView2
- Linux WPE WebKit (Official API - WebKitWebView::decide-policy)
Parameters - Officially Supported Platforms/Implementations:
navigationAction: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
- Android WebView (Official API - WebViewClient.shouldOverrideUrlLoading):
- windowId → const PlatformWebViewCreationParamsProperty
-
Can be used to check if the PlatformWebViewCreationParams.windowId property is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
PlatformWebViewCreationParamsProperty> - A constant List of the values in this enum, in order of their declaration.