setLocalProxy abstract method

Future<int?> setLocalProxy(
  1. List<LocalProxyConfiguration>? configurations
)

Valid since v3.56.1

Sets local proxy.

configurations: Local proxy configurations.
You can set both Http tunnel and Socks5 as your local proxies, or only set one of them based on your needs. If you set both Http tunnel and Socks5 as your local proxies, then media traffic and signaling are routed through Socks5 proxy and Http requests through Http tunnel proxy. If you set either Http tunnel or Socks5 as your local proxy, then media traffic, signaling and Http requests are all routed through the proxy you chose.
If you want to remove the existing local proxy configurations, you can call this API with the parameter set to null.

Notes:

Implementation

Future<int?> setLocalProxy(List<LocalProxyConfiguration>? configurations);