setCloudProxyConfig static method

Future<void> setCloudProxyConfig(
  1. List<ZegoProxyInfo> proxyList,
  2. String token,
  3. bool enable
)

Set cloud proxy config.

Available since: 3.1.0 Description: If you need to use the cloud proxy feature, please call this function to complete the configuration. When to call: Must be set before calling createEngine to take effect, otherwise it will fail. Restrictions: After createEngine, can not change the proxy. Caution: None.

  • proxyList proxy info.
  • token token. if use appsign auth, ignore.
  • enable enable proxy or not.

Implementation

static Future<void> setCloudProxyConfig(
    List<ZegoProxyInfo> proxyList, String token, bool enable) async {
  return await ZegoExpressImpl.setCloudProxyConfig(proxyList, token, enable);
}