PlatformInAppWebViewControllerMethod enum
List of PlatformInAppWebViewController's methods that can be used to check if they are supported or not by the current platform.
Values
- addDevToolsProtocolEventListener → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.addDevToolsProtocolEventListener method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2DevToolsProtocolEventReceiver.add_DevToolsProtocolEventReceived)
Parameters - Officially Supported Platforms/Implementations:
eventName: all platformscallback: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- addJavaScriptHandler → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.addJavaScriptHandler method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
handlerName: all platformscallback: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- addUserScript → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.addUserScript method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - WKUserContentController.addUserScript):
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Linux WPE WebKit (Official API - webkit_user_content_manager_add_script)
- macOS WKWebView (Official API - WKUserContentController.addUserScript):
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
userScript: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- addUserScripts → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.addUserScripts method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Linux WPE WebKit
- macOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
userScripts: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- addWebMessageListener → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.addWebMessageListener method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.WebMessageListener):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.WEB_MESSAGE_LISTENER.
- This method should only be called if WebViewFeature.isFeatureSupported returns
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit (Official API - webkit_user_content_manager_add_script):
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Windows WebView2:
- This method is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
webMessageListener: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewCompat.WebMessageListener):
- callAsyncJavaScript → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.callAsyncJavaScript method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+
- iOS WKWebView 14.3+ (Official API - WKWebView.callAsyncJavaScript)
- macOS WKWebView 11.0+ (Official API - WKWebView.callAsyncJavaScript)
- Windows WebView2
- Linux WPE WebKit 2.40+ (Official API - webkit_web_view_call_async_javascript_function):
- Uses WPE WebKit call_async_javascript_function API which handles JavaScript Promises automatically.
Parameters - Officially Supported Platforms/Implementations:
functionBody: all platformsarguments: all platformscontentWorld: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- callDevToolsProtocolMethod → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.callDevToolsProtocolMethod method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2.CallDevToolsProtocolMethod)
Parameters - Officially Supported Platforms/Implementations:
methodName: all platformsparameters: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- canGoBack → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.canGoBack method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.canGoBack)
- iOS WKWebView (Official API - WKWebView.canGoBack)
- macOS WKWebView (Official API - WKWebView.canGoBack)
- Windows WebView2 (Official API - ICoreWebView2.get_CanGoBack)
- Linux WPE WebKit (Official API - webkit_web_view_can_go_back)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- canGoBackOrForward → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.canGoBackOrForward method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.canGoBackOrForward)
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
steps: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- canGoForward → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.canGoForward method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.canGoForward)
- iOS WKWebView (Official API - WKWebView.canGoForward)
- macOS WKWebView (Official API - WKWebView.canGoForward)
- Windows WebView2 (Official API - ICoreWebView2.get_CanGoForward)
- Linux WPE WebKit (Official API - webkit_web_view_can_go_forward)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- canScrollHorizontally → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.canScrollHorizontally method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- canScrollVertically → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.canScrollVertically method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearAllCache → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearAllCache method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
includeDiskFiles: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearCache → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearCache method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearClientCertPreferences → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearClientCertPreferences method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebView.clearClientCertPreferences)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearFocus → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearFocus method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ViewGroup.clearFocus)
- iOS WKWebView (Official API - UIResponder.resignFirstResponder)
- macOS WKWebView (Official API - NSWindow.makeFirstResponder)
- Linux WPE WebKit (Official API - wpe_view_backend_remove_activity_state):
- Removes focused state from WPE backend and blurs active element via JavaScript
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearFormData → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearFormData method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.clearFormData)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearHistory → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearHistory method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.clearHistory)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearMatches → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearMatches method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- clearSslPreferences → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.clearSslPreferences method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.clearSslPreferences)
- Windows WebView2 (Official API - ICoreWebView2_3.ClearServerCertificateErrorActions)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- closeAllMediaPresentations → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.closeAllMediaPresentations method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 14.5+ (Official API - WKWebView.closeAllMediaPresentations)
- macOS WKWebView 11.3+ (Official API - WKWebView.closeAllMediaPresentations)
- Linux WPE WebKit (Official API - JavaScript Document.exitFullscreen()/exitPictureInPicture()):
- Uses JavaScript to exit fullscreen and picture-in-picture modes
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- createPdf → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.createPdf method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 14.0+ (Official API - WKWebView.createPdf)
- macOS WKWebView 11.0+ (Official API - WKWebView.createPdf)
- Windows WebView2 (Official API - ICoreWebView2_16.PrintToPdfStream)
Parameters - Officially Supported Platforms/Implementations:
pdfConfiguration: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- createWebArchiveData → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.createWebArchiveData method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 14.0+ (Official API - WKWebView.createWebArchiveData)
- macOS WKWebView 11.0+ (Official API - WKWebView.createWebArchiveData)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- createWebMessageChannel → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.createWebMessageChannel method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.createWebMessageChannel):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.CREATE_WEB_MESSAGE_CHANNEL.
- This method should only be called if WebViewFeature.isFeatureSupported returns
- iOS WKWebView:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit:
- Implemented via JavaScript MessageChannel API.
- Windows WebView2:
- Implemented via JavaScript MessageChannel API.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewCompat.createWebMessageChannel):
- disableWebView → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.disableWebView method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 28+ (Official API - WebView.disableWebView)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- dispose → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.dispose method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
isKeepAlive: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- disposeKeepAlive → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.disposeKeepAlive method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
keepAlive: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- enableSlowWholeDocumentDraw → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.enableSlowWholeDocumentDraw method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebView.enableSlowWholeDocumentDraw):
- This method should be called before any WebViews are created.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView 21+ (Official API - WebView.enableSlowWholeDocumentDraw):
- evaluateJavascript → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.evaluateJavascript method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.evaluateJavascript)
- iOS WKWebView (Official API - WKWebView.evaluateJavaScript)
- macOS WKWebView (Official API - WKWebView.evaluateJavaScript)
- Web <iframe> but requires same origin (Official API - Window.eval)
- Windows WebView2
- Linux WPE WebKit (Official API - webkit_web_view_evaluate_javascript)
Parameters - Officially Supported Platforms/Implementations:
source: all platformscontentWorld:- Android WebView
- iOS WKWebView 14.0+
- macOS WKWebView 11.0+
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- findAllAsync → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.findAllAsync method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
find: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- findNext → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.findNext method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
forward: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getCameraCaptureState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getCameraCaptureState method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.cameraCaptureState)
- Linux WPE WebKit 2.34+ (Official API - webkit_web_view_get_camera_capture_state)
- macOS WKWebView 12.0+ (Official API - WKWebView.cameraCaptureState)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getCertificate → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getCertificate method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getCertificate)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit (Official API - webkit_web_view_get_tls_info)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getContentHeight → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getContentHeight method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getContentHeight)
- iOS WKWebView (Official API - UIScrollView.contentSize)
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin (Official API - Document.documentElement.scrollHeight)
- Linux WPE WebKit
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getContentWidth → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getContentWidth method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- This method is implemented using JavaScript.
- iOS WKWebView (Official API - UIScrollView.contentSize)
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin (Official API - Document.documentElement.scrollWidth)
- Linux WPE WebKit
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- getCopyBackForwardList → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getCopyBackForwardList method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.copyBackForwardList)
- iOS WKWebView (Official API - WKWebView.backForwardList)
- macOS WKWebView (Official API - WKWebView.backForwardList)
- Windows WebView2
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getCurrentWebViewPackage → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getCurrentWebViewPackage method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebViewCompat.getCurrentWebViewPackage)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getDefaultUserAgent → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getDefaultUserAgent method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebSettings.getDefaultUserAgent)
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin (Official API - Navigator.userAgent)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getFavicon → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getFavicon method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_15.GetFavicon)
Parameters - Officially Supported Platforms/Implementations:
url: all platformsfaviconImageFormat: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getFavicons → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getFavicons method 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 PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getFrameId → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getFrameId method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_20.get_FrameId)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getHitTestResult → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getHitTestResult method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getHitTestResult)
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit (Official API - WebKitHitTestResult):
- This method uses native WebKitHitTestResult from the mouse-target-changed signal.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getHtml → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getHtml method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getIFrameId → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getIFrameId method is supported at runtime.
Officially Supported Platforms/Implementations:
- Web <iframe> but requires same origin
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getJavaScriptBridgeName → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getJavaScriptBridgeName method 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 PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getMemoryUsageTargetLevel → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getMemoryUsageTargetLevel method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_19.get_MemoryUsageTargetLevel)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getMetaTags → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getMetaTags method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- This method is implemented using JavaScript.
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin:
- This method is implemented using JavaScript.
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- getMetaThemeColor → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getMetaThemeColor method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- This method is implemented using JavaScript.
- iOS WKWebView (Official API - WKWebView.themeColor):
- On iOS < 15.0, this method is implemented using JavaScript.
- Linux WPE WebKit (Official API - webkit_web_view_get_theme_color)
- macOS WKWebView (Official API - WKWebView.themeColor):
- On iOS < 12.0, this method is implemented using JavaScript.
- Web <iframe> but requires same origin:
- This method is implemented using JavaScript.
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- getMicrophoneCaptureState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getMicrophoneCaptureState method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.microphoneCaptureState)
- Linux WPE WebKit 2.34+ (Official API - webkit_web_view_get_microphone_capture_state)
- macOS WKWebView 12.0+ (Official API - WKWebView.microphoneCaptureState)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getOptions → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getOptions method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getOriginalUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getOriginalUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getOriginalUrl)
- iOS WKWebView
- Linux WPE WebKit (Official API - webkit_web_view_get_uri):
- Returns the current URL. WPE WebKit does not distinguish between original and current URL.
- macOS WKWebView
- Web <iframe> but requires same origin:
- It will return the current value of the
iframe.srcattribute.
- It will return the current value of the
- Windows WebView2:
- Returns the current URL. WebView2 does not distinguish between original and current URL.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getProgress → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getProgress method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getProgress)
- iOS WKWebView (Official API - WKWebView.estimatedProgress)
- macOS WKWebView (Official API - WKWebView.estimatedProgress)
- Linux WPE WebKit (Official API - webkit_web_view_get_estimated_load_progress)
- Windows WebView2:
- Progress is tracked through navigation events: NavigationStarting (0), ContentLoading (33), DOMContentLoaded (66), NavigationCompleted (100).
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getSafeBrowsingPrivacyPolicyUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getSafeBrowsingPrivacyPolicyUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.getSafeBrowsingPrivacyPolicyUrl):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.SAFE_BROWSING_PRIVACY_POLICY_URL.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewCompat.getSafeBrowsingPrivacyPolicyUrl):
- getScale → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getScale method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getScreenScale → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getScreenScale method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit (Official API - wpe_screen_get_scale)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getScrollX → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getScrollX method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.getScrollX)
- iOS WKWebView (Official API - UIScrollView.contentOffset)
- macOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit
- Web <iframe> but requires same origin (Official API - Window.scrollX)
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getScrollY → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getScrollY method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.getScrollY)
- iOS WKWebView (Official API - UIScrollView.contentOffset)
- macOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit
- Web <iframe> but requires same origin (Official API - Window.scrollY)
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getSelectedText → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getSelectedText method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- This method is implemented using JavaScript.
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- getSettings → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getSettings method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getTRexRunnerCss → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getTRexRunnerCss method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getTRexRunnerHtml → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getTRexRunnerHtml method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getTargetRefreshRate → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getTargetRefreshRate method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getTitle → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getTitle method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getTitle)
- iOS WKWebView (Official API - WKWebView.title)
- macOS WKWebView (Official API - WKWebView.title)
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2.get_DocumentTitle)
- Linux WPE WebKit (Official API - webkit_web_view_get_title)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getUrl)
- iOS WKWebView (Official API - WKWebView.url)
- macOS WKWebView (Official API - WKWebView.url)
- Web <iframe> but requires same origin:
- For a same-origin iframe it returns the current location. After the first document loads, it returns null when the browser's same-origin policy prevents reading a cross-origin location.
- Windows WebView2 (Official API - ICoreWebView2.get_Source)
- Linux WPE WebKit (Official API - webkit_web_view_get_uri)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getVariationsHeader → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getVariationsHeader method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.getVariationsHeader):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.GET_VARIATIONS_HEADER.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewCompat.getVariationsHeader):
- getViewId → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getViewId method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- getZoomScale → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.getZoomScale method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - UIScrollView.zoomScale)
- Linux WPE WebKit (Official API - webkit_web_view_get_zoom_level)
- Windows WebView2 (Official API - ICoreWebView2Controller.get_ZoomFactor)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- goBack → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.goBack method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.goBack)
- iOS WKWebView (Official API - WKWebView.goBack)
- macOS WKWebView (Official API - WKWebView.goBack)
- Web <iframe> but requires same origin (Official API - History.back)
- Windows WebView2 (Official API - ICoreWebView2.GoBack)
- Linux WPE WebKit (Official API - webkit_web_view_go_back)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- goBackOrForward → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.goBackOrForward method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.goBackOrForward)
- iOS WKWebView (Official API - WKWebView.go)
- macOS WKWebView (Official API - WKWebView.go)
- Web <iframe> but requires same origin (Official API - History.go)
- Windows WebView2
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
steps: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- goForward → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.goForward method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.goForward)
- iOS WKWebView (Official API - WKWebView.goForward)
- macOS WKWebView (Official API - WKWebView.goForward)
- Web <iframe> but requires same origin (Official API - History.forward)
- Windows WebView2 (Official API - ICoreWebView2.GoForward)
- Linux WPE WebKit (Official API - webkit_web_view_go_forward)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- goTo → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.goTo method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
historyItem: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- handlesURLScheme → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.handlesURLScheme method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 11.0+ (Official API - WKWebView.handlesURLScheme)
- macOS WKWebView 10.13+ (Official API - WKWebView.handlesURLScheme)
- Linux WPE WebKit:
- Returns true for built-in schemes (http, https, file, ftp, data, blob, about, javascript).
Parameters - Officially Supported Platforms/Implementations:
urlScheme: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- hasJavaScriptHandler → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.hasJavaScriptHandler method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
handlerName: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- hasOnlySecureContent → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.hasOnlySecureContent method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKWebView.hasOnlySecureContent)
- macOS WKWebView (Official API - WKWebView.hasOnlySecureContent)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- hasUserScript → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.hasUserScript method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
userScript: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- hasWebMessageListener → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.hasWebMessageListener method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
webMessageListener: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- hideInputMethod → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.hideInputMethod method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - InputMethodManager.hideSoftInputFromWindow)
- iOS WKWebView (Official API - UIView.endEditing)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- injectCSSCode → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.injectCSSCode method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2:
- This method is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
source: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- injectCSSFileFromAsset → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.injectCSSFileFromAsset method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
Parameters - Officially Supported Platforms/Implementations:
assetFilePath: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- injectCSSFileFromUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.injectCSSFileFromUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2:
- This method is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
urlFile: all platformscssLinkHtmlTagAttributes: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- injectJavascriptFileFromAsset → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.injectJavascriptFileFromAsset method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
assetFilePath: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- injectJavascriptFileFromUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.injectJavascriptFileFromUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView
- Web <iframe> but requires same origin
Parameters - Officially Supported Platforms/Implementations:
urlFile: all platformsscriptHtmlTagAttributes: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- isInFullscreen → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isInFullscreen method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- isInterfaceSupported → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isInterfaceSupported method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
interface: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- isLoading → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isLoading method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit (Official API - webkit_web_view_is_loading)
- macOS WKWebView
- Web <iframe>
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- isMultiProcessEnabled → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isMultiProcessEnabled method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.isMultiProcessEnabled):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.MULTI_PROCESS.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewCompat.isMultiProcessEnabled):
- isMuted → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isMuted method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit 2.30+ (Official API - webkit_web_view_get_is_muted)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- isPlayingAudio → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isPlayingAudio method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit 2.8+ (Official API - webkit_web_view_is_playing_audio)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- isSecureContext → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isSecureContext method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+:
- This method is implemented using JavaScript.
- iOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Web <iframe> but requires same origin (Official API - Window.isSecureContext)
- Windows WebView2:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView 21+:
- isVisible → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.isVisible method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit (Official API - wpe_view_get_visible)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- loadData → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.loadData method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.loadDataWithBaseURL)
- iOS WKWebView (Official API - WKWebView.loadHTMLString):
- macOS WKWebView (Official API - WKWebView.loadHTMLString):
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2.NavigateToString)
- Linux WPE WebKit (Official API - webkit_web_view_load_html)
Parameters - Officially Supported Platforms/Implementations:
data: all platformsmimeType:- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
encoding:- Android WebView
- iOS WKWebView
- macOS WKWebView
baseUrl:- Android WebView
- iOS WKWebView
- macOS WKWebView
historyUrl:- Android WebView
allowingReadAccessTo:- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- loadFile → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.loadFile method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.loadUrl)
- iOS WKWebView (Official API - WKWebView.load)
- macOS WKWebView (Official API - WKWebView.load)
- Web <iframe> but requires same origin
- Windows WebView2 (Official API - ICoreWebView2.Navigate)
- Linux WPE WebKit (Official API - webkit_web_view_load_uri)
Parameters - Officially Supported Platforms/Implementations:
assetFilePath: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- loadSimulatedRequest → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.loadSimulatedRequest method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.loadSimulatedRequest(_:response:responseData:)):
- macOS WKWebView 12.0+ (Official API - WKWebView.loadSimulatedRequest(_:response:responseData:)):
Parameters - Officially Supported Platforms/Implementations:
urlRequest: all platformsdata: all platformsurlResponse: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- loadUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.loadUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.loadUrl):
- If method is "POST", Official API - WebView.postUrl. Also, when loading an URL Request using "POST" method, headers are ignored.
- iOS WKWebView (Official API - WKWebView.load):
- If
allowingReadAccessTois used, Official API - WKWebView.loadFileURL
- If
- macOS WKWebView (Official API - WKWebView.load):
- If
allowingReadAccessTois used, Official API - WKWebView.loadFileURL
- If
- Web <iframe> but requires same origin:
- If method is "GET" and headers are empty, it will change the
srcof the iframe. For all other cases it will try to create an XMLHttpRequest and load the result inside the iframe.
- If method is "GET" and headers are empty, it will change the
- Windows WebView2 (Official API - ICoreWebView2_2.NavigateWithWebResourceRequest)
- Linux WPE WebKit (Official API - webkit_web_view_load_uri)
Parameters - Officially Supported Platforms/Implementations:
urlRequest: all platformsallowingReadAccessTo:- iOS WKWebView
- macOS WKWebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebView.loadUrl):
- openDevTools → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.openDevTools method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2.OpenDevToolsWindow)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- pageDown → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.pageDown method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.pageDown)
Parameters - Officially Supported Platforms/Implementations:
bottom: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- pageUp → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.pageUp method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.pageUp)
Parameters - Officially Supported Platforms/Implementations:
top: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- pause → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.pause method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.onPause)
- Windows WebView2 (Official API - ICoreWebView2_3.TrySuspend)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- pauseAllMediaPlayback → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.pauseAllMediaPlayback method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.pauseAllMediaPlayback)
- macOS WKWebView 12.0+ (Official API - WKWebView.pauseAllMediaPlayback)
- Linux WPE WebKit (Official API - JavaScript HTMLMediaElement.pause()):
- Uses JavaScript to pause all audio and video elements
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- pauseTimers → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.pauseTimers method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.pauseTimers)
- iOS WKWebView:
- This method is implemented using JavaScript and it is restricted to just this WebView.
- macOS WKWebView:
- This method is implemented using JavaScript and it is restricted to just this WebView.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- postUrl → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.postUrl method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.postUrl)
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin:
- It will try to create an XMLHttpRequest and load the result inside the iframe.
- Windows WebView2
- Linux WPE WebKit:
- Uses JavaScript to create an XMLHttpRequest and load the result.
Parameters - Officially Supported Platforms/Implementations:
url: all platformspostData: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- postWebMessage → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.postWebMessage method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.postWebMessage):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.POST_WEB_MESSAGE.
- This method should only be called if WebViewFeature.isFeatureSupported returns
- iOS WKWebView:
- This method is implemented using JavaScript.
- macOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit:
- Implemented via JavaScript MessageChannel API.
- Windows WebView2:
- Implemented via JavaScript MessageChannel API.
Parameters - Officially Supported Platforms/Implementations:
message: all platformstargetOrigin: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebView.postWebMessage):
- printCurrentPage → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.printCurrentPage method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - PrintManager.print)
- iOS WKWebView (Official API - UIPrintInteractionController.present)
- macOS WKWebView (Official API - WKWebView.printOperation):
- If macOS version is less than 11.0, it will use Official API - NSView.printView.
- Web <iframe> but requires same origin (Official API - Window.print):
- PlatformPrintJobController is always
null.
- PlatformPrintJobController is always
- Windows WebView2 (Official API - ICoreWebView2_16.Print)
Parameters - Officially Supported Platforms/Implementations:
settings: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- reload → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.reload method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.reload)
- iOS WKWebView (Official API - WKWebView.reload)
- macOS WKWebView (Official API - WKWebView.reload)
- Web <iframe> but requires same origin (Official API - Location.reload):
- if
window.location.reload()is not accessible inside the iframe, it will reload using the iframesrcattribute.
- if
- Windows WebView2 (Official API - ICoreWebView2.Reload)
- Linux WPE WebKit (Official API - webkit_web_view_reload)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- reloadFromOrigin → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.reloadFromOrigin method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKWebView.reloadFromOrigin)
- macOS WKWebView (Official API - WKWebView.reloadFromOrigin)
- Linux WPE WebKit (Official API - webkit_web_view_reload_bypass_cache)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- removeAllUserScripts → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.removeAllUserScripts method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - WKUserContentController.removeAllUserScripts):
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Linux WPE WebKit (Official API - webkit_user_content_manager_remove_all_scripts)
- macOS WKWebView (Official API - WKUserContentController.removeAllUserScripts):
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- removeDevToolsProtocolEventListener → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.removeDevToolsProtocolEventListener method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2DevToolsProtocolEventReceiver.remove_DevToolsProtocolEventReceived)
Parameters - Officially Supported Platforms/Implementations:
eventName: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- removeJavaScriptHandler → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.removeJavaScriptHandler method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
handlerName: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- removeUserScript → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.removeUserScript method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Linux WPE WebKit
- macOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
userScript: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- removeUserScripts → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.removeUserScripts method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Linux WPE WebKit
- macOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
userScripts: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- removeUserScriptsByGroupName → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.removeUserScriptsByGroupName method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Linux WPE WebKit
- macOS WKWebView:
- This method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
groupName: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestEnterFullscreen → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestEnterFullscreen method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestExitFullscreen → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestExitFullscreen method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestFocus → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestFocus method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.requestFocus)
- iOS WKWebView (Official API - UIResponder.becomeFirstResponder)
- macOS WKWebView (Official API - NSWindow.makeFirstResponder)
- Linux WPE WebKit (Official API - wpe_view_backend_add_activity_state):
- Adds focused state to WPE backend
Parameters - Officially Supported Platforms/Implementations:
direction:- Android WebView
previouslyFocusedRect:- Android WebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestFocusNodeHref → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestFocusNodeHref method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.requestFocusNodeHref)
- iOS WKWebView:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestImageRef → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestImageRef method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.requestImageRef)
- iOS WKWebView:
- This method is implemented using JavaScript.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestMediaPlaybackState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestMediaPlaybackState method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.requestMediaPlaybackState)
- macOS WKWebView 12.0+ (Official API - WKWebView.requestMediaPlaybackState)
- Linux WPE WebKit (Official API - JavaScript HTMLMediaElement.paused):
- Uses JavaScript to query media playback state
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestPointerLock → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestPointerLock method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- requestPointerUnlock → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.requestPointerUnlock method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- restoreState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.restoreState method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.restoreState):
- This method doesn't restore the display data for this WebView.
- iOS WKWebView 15.0+ (Official API - WKWebView.interactionState)
- macOS WKWebView 12.0+ (Official API - WKWebView.interactionState)
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
state: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebView.restoreState):
- resume → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.resume method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.onResume)
- Windows WebView2 (Official API - ICoreWebView2_3.Resume)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- resumeTimers → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.resumeTimers method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.resumeTimers)
- iOS WKWebView:
- This method is implemented using JavaScript and it is restricted to just this WebView.
- macOS WKWebView:
- This method is implemented using JavaScript and it is restricted to just this WebView.
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- saveState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.saveState method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.saveState):
- This method doesn't store the display data for this WebView.
- iOS WKWebView 15.0+ (Official API - WKWebView.interactionState)
- macOS WKWebView 12.0+ (Official API - WKWebView.interactionState)
- Linux WPE WebKit
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebView.saveState):
- saveWebArchive → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.saveWebArchive method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.saveWebArchive):
- If
autonameisfalse, thefilePathmust ends with the WebArchiveFormat.MHT file extension.
- If
- iOS WKWebView 14.0+:
- If
autonameisfalse, thefilePathmust ends with the WebArchiveFormat.WEBARCHIVE file extension.
- If
- Linux WPE WebKit (Official API - webkit_web_view_save_to_file):
- If
autonameisfalse, thefilePathmust ends with the WebArchiveFormat.MHT file extension.
- If
- macOS WKWebView 11.0+:
- If
autonameisfalse, thefilePathmust ends with the WebArchiveFormat.WEBARCHIVE file extension.
- If
Parameters - Officially Supported Platforms/Implementations:
filePath: all platformsautoname: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebView.saveWebArchive):
- scrollBy → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.scrollBy 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.
- Linux WPE WebKit
- Web <iframe> but requires same origin (Official API - Window.scrollBy)
- Windows WebView2:
- This method is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
x: all platformsy: all platformsanimated: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- scrollTo → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.scrollTo method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.scrollTo)
- iOS WKWebView (Official API - UIScrollView.setContentOffset)
- macOS WKWebView:
- This method is implemented using JavaScript.
- Linux WPE WebKit
- Web <iframe> but requires same origin (Official API - Window.scrollTo)
- Windows WebView2:
- This method is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
x: all platformsy: all platformsanimated: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setAllMediaPlaybackSuspended → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setAllMediaPlaybackSuspended method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.setAllMediaPlaybackSuspended)
- macOS WKWebView 12.0+ (Official API - WKWebView.setAllMediaPlaybackSuspended)
- Linux WPE WebKit (Official API - JavaScript HTMLMediaElement.pause()/play()):
- Uses JavaScript to suspend/resume all media elements
Parameters - Officially Supported Platforms/Implementations:
suspended: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setBackgroundColor → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setBackgroundColor method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - View.setBackgroundColor)
Parameters - Officially Supported Platforms/Implementations:
color: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setCameraCaptureState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setCameraCaptureState method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.setCameraCaptureState)
- Linux WPE WebKit 2.34+ (Official API - webkit_web_view_set_camera_capture_state):
- Once state is set to NONE, it cannot be changed back. The page can request capture again using the mediaDevices API.
- macOS WKWebView 12.0+ (Official API - WKWebView.setCameraCaptureState)
Parameters - Officially Supported Platforms/Implementations:
state: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setContextMenu → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setContextMenu method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
Parameters - Officially Supported Platforms/Implementations:
contextMenu: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setInputMethodEnabled → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setInputMethodEnabled method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - UIResponder.inputView)
Parameters - Officially Supported Platforms/Implementations:
enabled: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setJavaScriptBridgeName → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setJavaScriptBridgeName method 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
Parameters - Officially Supported Platforms/Implementations:
bridgeName: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setMemoryUsageTargetLevel → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setMemoryUsageTargetLevel method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_19.put_MemoryUsageTargetLevel)
Parameters - Officially Supported Platforms/Implementations:
level: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setMicrophoneCaptureState → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setMicrophoneCaptureState method is supported at runtime.
Officially Supported Platforms/Implementations:
- iOS WKWebView 15.0+ (Official API - WKWebView.setMicrophoneCaptureState)
- Linux WPE WebKit 2.34+ (Official API - webkit_web_view_set_microphone_capture_state):
- Once state is set to NONE, it cannot be changed back. The page can request capture again using the mediaDevices API.
- macOS WKWebView 12.0+ (Official API - WKWebView.setMicrophoneCaptureState)
Parameters - Officially Supported Platforms/Implementations:
state: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setMuted → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setMuted method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit 2.30+ (Official API - webkit_web_view_set_is_muted)
Parameters - Officially Supported Platforms/Implementations:
muted: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setOptions → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setOptions method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
options: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setSafeBrowsingAllowlist → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setSafeBrowsingAllowlist method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebViewCompat.setSafeBrowsingAllowlist):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.SAFE_BROWSING_ALLOWLIST.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Parameters - Officially Supported Platforms/Implementations:
hosts: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebViewCompat.setSafeBrowsingAllowlist):
- setSafeBrowsingWhitelist → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setSafeBrowsingWhitelist method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
Parameters - Officially Supported Platforms/Implementations:
hosts: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setScreenScale → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setScreenScale method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit (Official API - wpe_screen_set_scale)
Parameters - Officially Supported Platforms/Implementations:
scale: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setSettings → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setSettings method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- Linux WPE WebKit
- macOS WKWebView
- Web <iframe> but requires same origin
- Windows WebView2
Parameters - Officially Supported Platforms/Implementations:
settings: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setTargetRefreshRate → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setTargetRefreshRate method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
rate: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setVisible → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setVisible method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
visible: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- setWebContentsDebuggingEnabled → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.setWebContentsDebuggingEnabled method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.setWebContentsDebuggingEnabled)
Parameters - Officially Supported Platforms/Implementations:
debuggingEnabled: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- showInputMethod → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.showInputMethod method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - InputMethodManager.showSoftInput)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- showSaveAsUI → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.showSaveAsUI method is supported at runtime.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_25.ShowSaveAsUI)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- startSafeBrowsing → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.startSafeBrowsing method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.startSafeBrowsing):
- This method should only be called if WebViewFeature.isFeatureSupported returns
truefor WebViewFeature.START_SAFE_BROWSING.
- This method should only be called if WebViewFeature.isFeatureSupported returns
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView (Official API - WebView.startSafeBrowsing):
- stopLoading → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.stopLoading method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.stopLoading)
- iOS WKWebView (Official API - WKWebView.stopLoading)
- macOS WKWebView (Official API - WKWebView.stopLoading)
- Web <iframe> but requires same origin (Official API - Window.stop)
- Windows WebView2 (Official API - ICoreWebView2.Stop)
- Linux WPE WebKit (Official API - webkit_web_view_stop_loading)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- takeScreenshot → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.takeScreenshot method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView:
- To be able to take screenshots outside the visible viewport, you must call PlatformInAppWebViewController.enableSlowWholeDocumentDraw before any WebViews are created.
- iOS WKWebView 11.0+ (Official API - WKWebView.takeSnapshot)
- macOS WKWebView 10.13+ (Official API - WKWebView.takeSnapshot)
- Windows WebView2
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
screenshotConfiguration: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- Android WebView:
- terminateWebProcess → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.terminateWebProcess method is supported at runtime.
Officially Supported Platforms/Implementations:
- Linux WPE WebKit 2.34+ (Official API - webkit_web_view_terminate_web_process)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- zoomBy → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.zoomBy method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView 21+ (Official API - WebView.zoomBy)
- iOS WKWebView (Official API - UIScrollView.setZoomScale)
- Linux WPE WebKit (Official API - webkit_web_view_set_zoom_level)
Parameters - Officially Supported Platforms/Implementations:
zoomFactor: all platformsanimated:- iOS WKWebView
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- zoomIn → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.zoomIn method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.zoomIn)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
- zoomOut → const PlatformInAppWebViewControllerMethod
-
Can be used to check if the PlatformInAppWebViewController.zoomOut method is supported at runtime.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.zoomOut)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method 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<
PlatformInAppWebViewControllerMethod> - A constant List of the values in this enum, in order of their declaration.