PlatformInAppBrowserEventsMethod enum
List of PlatformInAppBrowserEvents's methods that can be used to check if they are supported or not by the current platform.
Values
- androidOnFormResubmission → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnFormResubmission method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnGeolocationPermissionsHidePrompt → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnGeolocationPermissionsHidePrompt method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnGeolocationPermissionsShowPrompt → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnGeolocationPermissionsShowPrompt method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
origin: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnJsBeforeUnload → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnJsBeforeUnload method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
jsBeforeUnloadRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnPermissionRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnPermissionRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
origin: all platformsresources: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnReceivedIcon → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnReceivedIcon method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
icon: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnReceivedLoginRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnReceivedLoginRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
loginRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnReceivedTouchIconUrl → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnReceivedTouchIconUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platformsprecomposed: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnRenderProcessGone → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnRenderProcessGone method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
detail: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnRenderProcessResponsive → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnRenderProcessResponsive method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnRenderProcessUnresponsive → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnRenderProcessUnresponsive method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnSafeBrowsingHit → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnSafeBrowsingHit method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
url: all platformsthreatType: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidOnScaleChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidOnScaleChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
oldScale: all platformsnewScale: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- androidShouldInterceptRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.androidShouldInterceptRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
-
Can be used to check if the PlatformInAppBrowserEvents.iosOnDidReceiveServerRedirectForProvisionalNavigation method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
-
Can be used to check if the PlatformInAppBrowserEvents.iosOnNavigationResponse method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
navigationResponse: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- iosOnWebContentProcessDidTerminate → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.iosOnWebContentProcessDidTerminate method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- iosShouldAllowDeprecatedTLS → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.iosShouldAllowDeprecatedTLS method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onAcceleratorKeyPressed → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onAcceleratorKeyPressed method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onAjaxProgress → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onAjaxProgress method 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
Parameters - Officially Supported Platforms/Implementations:
ajaxRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- onAjaxReadyStateChange → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onAjaxReadyStateChange method 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
Parameters - Officially Supported Platforms/Implementations:
ajaxRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- onBrowserCreated → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onBrowserCreated method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onCameraCaptureStateChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onCameraCaptureStateChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+
- macOS WKWebView 12.0+
Parameters - Officially Supported Platforms/Implementations:
oldState: all platformsnewState: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onCloseWindow → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onCloseWindow method 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)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onConsoleMessage → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onConsoleMessage method 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
Parameters - Officially Supported Platforms/Implementations:
consoleMessage: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onContentLoading → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onContentLoading method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onContentSizeChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onContentSizeChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
oldContentSize: all platformsnewContentSize: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onCreateWindow → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onCreateWindow method 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
- Windows WebView2 (Official API - ICoreWebView2.add_NewWindowRequested)
Parameters - Officially Supported Platforms/Implementations:
createWindowAction: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebChromeClient.onCreateWindow):
- onDOMContentLoaded → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onDOMContentLoaded method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
-
Can be used to check if the PlatformInAppBrowserEvents.onDidReceiveServerRedirectForProvisionalNavigation method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onDownloadStart → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onDownloadStart method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onDownloadStartRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onDownloadStartRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
downloadStartRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onDownloadStarting → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onDownloadStarting method 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)
Parameters - Officially Supported Platforms/Implementations:
downloadStartRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onEnterFullscreen → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onEnterFullscreen method 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)
- Windows WebView2 (Official API - ICoreWebView2.add_ContainsFullScreenElementChanged)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onExit → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onExit method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onExitFullscreen → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onExitFullscreen method 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)
- Windows WebView2 (Official API - ICoreWebView2.add_ContainsFullScreenElementChanged)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onFaviconChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onFaviconChanged method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onFindResultReceived → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onFindResultReceived method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onFormResubmission → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onFormResubmission method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onFormResubmission)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onGeolocationPermissionsHidePrompt → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onGeolocationPermissionsHidePrompt method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onGeolocationPermissionsHidePrompt)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onGeolocationPermissionsShowPrompt → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onGeolocationPermissionsShowPrompt method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onJsAlert → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onJsAlert method 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)
Parameters - Officially Supported Platforms/Implementations:
jsAlertRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onJsConfirm → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onJsConfirm method 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)
Parameters - Officially Supported Platforms/Implementations:
jsConfirmRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onJsPrompt → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onJsPrompt method 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)
Parameters - Officially Supported Platforms/Implementations:
jsPromptRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLaunchingExternalUriScheme → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLaunchingExternalUriScheme method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLoadError → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadError method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLoadHttpError → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadHttpError method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLoadResource → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadResource method 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.
Parameters - Officially Supported Platforms/Implementations:
resource: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- onLoadResourceCustomScheme → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadResourceCustomScheme method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLoadResourceWithCustomScheme → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadResourceWithCustomScheme method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - WKURLSchemeHandler)
- macOS WKWebView (Official API - WKURLSchemeHandler)
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLoadStart → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadStart method 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)
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationStarting)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLoadStop → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLoadStop method 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)
- Windows WebView2 (Official API - ICoreWebView2.add_NavigationCompleted)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onLongPressHitTestResult → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onLongPressHitTestResult method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onMainWindowWillClose → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onMainWindowWillClose method is supported at runtime.
Officially Supported Platforms/Implementations:
- macOS WKWebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onMicrophoneCaptureStateChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onMicrophoneCaptureStateChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+
- macOS WKWebView 12.0+
Parameters - Officially Supported Platforms/Implementations:
oldState: all platformsnewState: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
-
Can be used to check if the PlatformInAppBrowserEvents.onNavigationResponse method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKNavigationDelegate.webView)
- macOS WKWebView (Official API - WKNavigationDelegate.webView)
Parameters - Officially Supported Platforms/Implementations:
navigationResponse: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onNotificationReceived → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onNotificationReceived method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onOverScrolled → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onOverScrolled method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onPageCommitVisible → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onPageCommitVisible method 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)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onPermissionRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onPermissionRequest method 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)
Parameters - Officially Supported Platforms/Implementations:
permissionRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onPermissionRequestCanceled → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onPermissionRequestCanceled method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onPrint → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onPrint method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onPrintRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onPrintRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.scrollBy)
- iOS WKWebView (Official API - UIScrollView.setContentOffset)
- macOS WKWebView:
- This method is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
url: all platformsprintJobController: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onProcessFailed → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onProcessFailed method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onProgressChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onProgressChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onProgressChanged)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
progress: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedClientCertRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedClientCertRequest method 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)
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedError → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedError method 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)
Parameters - Officially Supported Platforms/Implementations:
request: all platformserror: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedHttpAuthRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedHttpAuthRequest method 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)
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedHttpError → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedHttpError method 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)
Parameters - Officially Supported Platforms/Implementations:
request: all platformserrorResponse: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedIcon → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedIcon method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedIcon)
Parameters - Officially Supported Platforms/Implementations:
icon: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedLoginRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedLoginRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onReceivedLoginRequest)
Parameters - Officially Supported Platforms/Implementations:
loginRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedServerTrustAuthRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedServerTrustAuthRequest method 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)
Parameters - Officially Supported Platforms/Implementations:
challenge: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onReceivedTouchIconUrl → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onReceivedTouchIconUrl method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onRenderProcessGone → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onRenderProcessGone method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 26+ (Official API - WebViewClient.onRenderProcessGone)
- Windows WebView2 (Official API - ICoreWebView2.add_ProcessFailed)
Parameters - Officially Supported Platforms/Implementations:
detail: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onRenderProcessResponsive → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onRenderProcessResponsive method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onRenderProcessUnresponsive → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onRenderProcessUnresponsive method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onRequestFocus → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onRequestFocus method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onRequestFocus)
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onSafeBrowsingHit → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onSafeBrowsingHit method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onSaveAsUIShowing → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onSaveAsUIShowing method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onSaveFileSecurityCheckStarting → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onSaveFileSecurityCheckStarting method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onScreenCaptureStarting → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onScreenCaptureStarting method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onScrollChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onScrollChanged method 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.
Parameters - Officially Supported Platforms/Implementations:
x: all platformsy: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onShowFileChooser → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onShowFileChooser method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onShowFileChooser)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onTitleChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onTitleChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedTitle)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2 (Official API - ICoreWebView2.add_DocumentTitleChanged)
Parameters - Officially Supported Platforms/Implementations:
title: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onUpdateVisitedHistory → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onUpdateVisitedHistory method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.doUpdateVisitedHistory)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2 (Official API - ICoreWebView2.add_HistoryChanged)
Parameters - Officially Supported Platforms/Implementations:
url: all platformsisReload:- Android WebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onWebContentProcessDidTerminate → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onWebContentProcessDidTerminate method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onWindowBlur → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onWindowBlur method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onWindowFocus → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onWindowFocus method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- onZoomScaleChanged → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.onZoomScaleChanged method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.onScaleChanged)
- iOS WKWebView (Official API - UIScrollViewDelegate.scrollViewDidZoom)
- Windows WebView2 (Official API - ICoreWebView2Controller.add_ZoomFactorChanged)
Parameters - Officially Supported Platforms/Implementations:
oldScale: all platformsnewScale: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- shouldAllowDeprecatedTLS → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.shouldAllowDeprecatedTLS method 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 PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- shouldInterceptAjaxRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.shouldInterceptAjaxRequest method 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
Parameters - Officially Supported Platforms/Implementations:
ajaxRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- shouldInterceptFetchRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.shouldInterceptFetchRequest method 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
Parameters - Officially Supported Platforms/Implementations:
fetchRequest: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- shouldInterceptRequest → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.shouldInterceptRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewClient.shouldInterceptRequest)
- Windows WebView2 (Official API - ICoreWebView2.add_WebResourceRequested)
Parameters - Officially Supported Platforms/Implementations:
request: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- shouldOverrideUrlLoading → const PlatformInAppBrowserEventsMethod
-
Can be used to check if the PlatformInAppBrowserEvents.shouldOverrideUrlLoading method 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
Parameters - Officially Supported Platforms/Implementations:
navigationAction: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewClient.shouldOverrideUrlLoading):
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<
PlatformInAppBrowserEventsMethod> - A constant List of the values in this enum, in order of their declaration.