onNetworkDetectionStopped method
@detail callback
@author hanchenchen.c
@brief Network detection before the call ends
The following conditions will stop the detection and receive this callback:
1. The callback is received once after the stopNetworkDetection{@link #RTCEngine#stopNetworkDetection} interface is called to stop probing;
2. Upon receipt of the distal/local audio first frame, stop the probe; When the detection exceeds 3 minutes, stop detection;
4. When the detection link is disconnected for a certain time, stop detection.
Reason
@param reason
The type of reason to stop probing, refer to NetworkDetectionStopReason{@link #NetworkDetectionStopReason}
Implementation
FutureOr<void> onNetworkDetectionStopped(dynamic reason) async {
if ($instance == null || $instance is! IRTCEngineEventHandler) {
return;
}
return ($instance as IRTCEngineEventHandler)
.onNetworkDetectionStopped
?.call(t_NetworkDetectionStopReason.android_to_code($p_a
.NetworkDetectionStopReason.values
.firstWhere((t) => t.$value == reason || t.name == reason)));
}