clearProxyOverride method

  1. @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')])
Future<void> clearProxyOverride()

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:

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',
  );
}