stopCloudProxy method

Future<int?> stopCloudProxy()

@detail api @author daining.nemo @brief 关闭云代理 @return - 0: 调用成功。 - < 0 : 调用失败。查看 ReturnStatus{@link #ReturnStatus} 获得更多错误说明 @note 要开启云代理,调用 startCloudProxy{@link #RTCEngine#startCloudProxy}。

Implementation

Future<int?> stopCloudProxy() async {
  $a() => ($instance as $p_a.RTCEngine).stopCloudProxy();
  $i() => ($instance as $p_i.ByteRTCEngine).stopCloudProxy();

  if (Platform.isAndroid) {
    return $a();
  } else if (Platform.isIOS) {
    return $i();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}