stopNetworkDetection method
@detail api @author hanchenchen.c @brief Stop pre-call network probe @return - 0: Success. - < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details @note - After calling this interface, you will receive an onNetworkDetectionStopped{@link #IRTCEngineEventHandler#onNetworkDetectionStopped} callback to notify the probe to stop.
Implementation
Future<int?> stopNetworkDetection() async {
$a() => ($instance as $p_a.RTCEngine).stopNetworkDetection();
$i() => ($instance as $p_i.ByteRTCEngine).stopNetworkDetection();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}