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
FutureOr<int> stopHardwareEchoDetection() async {
return await nativeCall('stopHardwareEchoDetection', []);
}