Package com.zego.zegoavkit2.networkprobe
Interface IZegoNetWorkProbeCallback
-
public interface IZegoNetWorkProbeCallback网络测速接口回调
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConnectResult(int errcode, ZegoNetConnectInfo info, int type)网络测速模块连通回调 探测连接和测速都会回调此值voidonTestStop(int errcode, int type)网络测速结束的回调。异常结束时会有此回调voidonUpdateSpeed(ZegoNetQualityInfo quality, int type)连通性测试速度质量回调 按设置的时间回调
-
-
-
Method Detail
-
onConnectResult
void onConnectResult(int errcode, ZegoNetConnectInfo info, int type)网络测速模块连通回调 探测连接和测速都会回调此值- Parameters:
errcode- 0 成功非0 失败info- 测试连接返回的信息type- 返回该回调的测试类型 1连接 2上行 3下行
-
onUpdateSpeed
void onUpdateSpeed(ZegoNetQualityInfo quality, int type)
连通性测试速度质量回调 按设置的时间回调- Parameters:
quality- 测速时返回的瞬时值type- 2上行测速 3下行测速
-
onTestStop
void onTestStop(int errcode, int type)网络测速结束的回调。异常结束时会有此回调- Parameters:
errcode- 异常结束时的错误码type- 2上行测速 3下行测速
-
-