javaScriptBridgeForMainFrameOnly property
getter/setter pair
Set to true to allow the JavaScript Bridge only on the main frame.
If pluginScriptsForMainFrameOnly is present, then this value will override
it only for the JavaScript Bridge internal plugin.
NOTE: setting or changing this value after the WebView has been created won't have any effect. It should be set when initializing the WebView through PlatformWebViewCreationParams.initialSettings parameter.
The default value is false.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
Implementation
bool? javaScriptBridgeForMainFrameOnly;