onNetworkDetectionResult property

FutureOr<void> Function(NetworkDetectionLinkType type, NetworkQuality quality, int rtt, double lostRate, int bitrate, int jitter)? onNetworkDetectionResult
getter/setter pair

@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> Function(
    NetworkDetectionLinkType type,
    NetworkQuality quality,
    int rtt,
    double lostRate,
    int bitrate,
    int jitter)? onNetworkDetectionResult;