onEchoTestResult method

FutureOr<void> onEchoTestResult(
  1. dynamic result
)
override

@detail callback @author qipengxiang @brief Callback about the call test result. @param result Test result, see EchoTestResult{@link #EchoTestResult}. @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> onEchoTestResult(dynamic result) async {
  if ($instance == null || $instance is! IRTCEngineEventHandler) {
    return;
  }
  return ($instance as IRTCEngineEventHandler).onEchoTestResult?.call(
      t_EchoTestResult.android_to_code($p_a.EchoTestResult.values
          .firstWhere((t) => t.$value == result || t.name == result)));
}