userAgent property
getter/setter pair
Sets the user-agent for the WebView.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebSettings.setUserAgentString)
- iOS WKWebView (Official API - WKWebView.customUserAgent)
- macOS WKWebView (Official API - WKWebView.customUserAgent)
- Windows WebView2 (Official API - ICoreWebView2Settings2.put_UserAgent)
Implementation
String? userAgent;