stopHardwareEchoDetection method
@detail api
@author zhangcaining
@brief Stop the echo detection before joining a room.
@return Method call result:
- 0: Success.
- -1: Failure.
@note
- Refer to startHardwareEchoDetection{@link #RTCEngine#startHardwareEchoDetection} for information on how to start a echo detection.
- We recommend calling this API to stop the detection once getting the detection result from onHardwareEchoDetectionResult{@link #IRTCEngineEventHandler#onHardwareEchoDetectionResult}.
- You must stop the echo detection to release the audio devices before the user joins a room. Otherwise, the detection may interfere with the call.
Implementation
Future<int?> stopHardwareEchoDetection() async {
$a() => ($instance as $p_a.RTCEngine).stopHardwareEchoDetection();
$i() => ($instance as $p_i.ByteRTCEngine).stopHardwareEchoDetection();
if (Platform.isAndroid) {
return $a();
} else if (Platform.isIOS) {
return $i();
} else {
throw UnsupportedError(
'Not Support Platform ${Platform.operatingSystem}');
}
}