proxySettings property
getter/setter pair
Sets proxy settings for this WebView's data store or network session.
When used with containerId, the proxy is isolated with that container's
WKWebsiteDataStore. On Windows, proxy arguments are applied when the
WebView2 environment is created.
Officially Supported Platforms/Implementations:
- iOS WKWebView 17.0+ (Official API - WKWebsiteDataStore.proxyConfigurations)
- macOS WKWebView 14.0+ (Official API - WKWebsiteDataStore.proxyConfigurations)
- Linux WPE WebKit (Official API - webkit_network_session_set_proxy_settings)
- Windows WebView2 (Official API - CoreWebView2EnvironmentOptions.AdditionalBrowserArguments):
- Proxy server and bypass arguments are applied when the WebView2 environment is created.
Implementation
ProxySettings? proxySettings;