onNetworkDetectionResult method

FutureOr<void> onNetworkDetectionResult(
  1. NetworkDetectionLinkType type,
  2. NetworkQuality quality,
  3. int rtt,
  4. double lostRate,
  5. int bitrate,
  6. int jitter,
)

@detail callback @author hanchenchen.c @brief Pre-call network detection result.
After successfully calling startNetworkDetection{@link #RTCEngine#startNetworkDetection}, you will receive this callback for the first time in 3s and every 2s thereafter. @param type Identifies the network type as uplink/downlink. @param quality Network quality, see NetworkQuality{@link #NetworkQuality}. @param rtt Network RTT in ms. @param lostRate Packet loss rate. @param bitrate Network bandwidth in kbps. @param jitter Network jitter in ms

Implementation

FutureOr<void> onNetworkDetectionResult(
    NetworkDetectionLinkType type,
    NetworkQuality quality,
    int rtt,
    double lostRate,
    int bitrate,
    int jitter) async {}