stopCloudProxy method

Future<int?> stopCloudProxy()

@detail api @author daining.nemo @brief Stop cloud proxy @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note To start cloud proxy, call 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}');
  }
}