OnNetworkDetectionResultType typedef

OnNetworkDetectionResultType = void Function(NetworkDetectionLinkType type, NetworkQuality quality, int rtt, double lostRate, int bitrate, int jitter)

type:探测网络类型为上行/下行

quality:探测网络的质量

rtt:探测网络的 RTT,单位:ms

lostRate:探测网络的丢包率

bitrate:探测网络的带宽,单位:kbps

jitter:探测网络的抖动,单位:ms

Implementation

typedef OnNetworkDetectionResultType = void Function(
    NetworkDetectionLinkType type,
    NetworkQuality quality,
    int rtt,
    double lostRate,
    int bitrate,
    int jitter);