forMainFrameOnly property
getter/setter pair
A Boolean value that indicates whether to inject the script into the main frame.
Specify true to inject the script only into the main frame, or false to inject it into all frames.
The default value is true.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
Implementation
bool forMainFrameOnly;