rtcEngine$onEchoTestResult method
@detail callback
@author qipengxiang
@brief Callback about the call test result.
@param engine ByteRTCEngine object
@param result Test result, see ByteRTCEchoTestResult{@link #ByteRTCEchoTestResult}.
@note The timing when this callback will be triggered is as follows:
- A device-related error occurred during the test;
- After a successful test;
- After stopping the test, provided that the audio/video playback was not received during the test due to non-device reasons.
Implementation
FutureOr<void> rtcEngine$onEchoTestResult(
dynamic engine, dynamic result) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler).onEchoTestResult?.call(
t_EchoTestResult.ios_to_code($p_i.ByteRTCEchoTestResult.values
.firstWhere((t) => t.$value == result || t.name == result)));
}