setProxyOverride method
Sets ProxySettings
which will be used by all WebView
s in the app.
URLs that match patterns in the bypass list will not be directed to any proxy.
Instead, the request will be made directly to the origin specified by the URL.
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 native WebView (Official API - ProxyController.setProxyOverride)
Implementation
@override
Future<void> setProxyOverride({required ProxySettings settings}) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent("settings", () => settings.toMap());
await channel?.invokeMethod('setProxyOverride', args);
}