clearProxyOverride method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'ProxyController.clearProxyOverride', apiUrl: 'https://developer.android.com/reference/androidx/webkit/ProxyController#clearProxyOverride(java.util.concurrent.Executor,%20java.lang.Runnable)'), IOSPlatform(apiName: 'WKWebsiteDataStore.proxyConfigurations', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4264546-proxyconfigurations', available: '17.0'), MacOSPlatform(apiName: 'WKWebsiteDataStore.proxyConfigurations', apiUrl: 'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4264546-proxyconfigurations', available: '14.0'), LinuxPlatform(apiName: 'webkit_network_session_set_proxy_settings', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.NetworkSession.set_proxy_settings.html')])
Clears the proxy settings. Network connections are not guaranteed to immediately use the new proxy setting; wait for the method to return before loading a page.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - ProxyController.clearProxyOverride)
- 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)
Use the PlatformProxyController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'ProxyController.clearProxyOverride',
apiUrl:
'https://developer.android.com/reference/androidx/webkit/ProxyController#clearProxyOverride(java.util.concurrent.Executor,%20java.lang.Runnable)',
),
IOSPlatform(
apiName: 'WKWebsiteDataStore.proxyConfigurations',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4264546-proxyconfigurations',
available: '17.0',
),
MacOSPlatform(
apiName: 'WKWebsiteDataStore.proxyConfigurations',
apiUrl:
'https://developer.apple.com/documentation/webkit/wkwebsitedatastore/4264546-proxyconfigurations',
available: '14.0',
),
LinuxPlatform(
apiName: 'webkit_network_session_set_proxy_settings',
apiUrl:
'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.NetworkSession.set_proxy_settings.html',
),
],
)
Future<void> clearProxyOverride() {
throw UnimplementedError(
'clearProxyOverride is not implemented on the current platform',
);
}