Package com.zego.zegoavkit2.networktrace
Class ZegoNetworktrace
- java.lang.Object
-
- com.zego.zegoavkit2.networktrace.ZegoNetworktrace
-
public class ZegoNetworktrace extends java.lang.Object
网络测速管理类
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoNetworktrace
getInstance()
获取 ZegoNetworktrace 的单例对象。 注意:必须在 ZegoLiveRoom setSDKContext(SDKContext) 后调用。void
setNetworkTraceCallback(IZegoNetworkTraceCallback callback)
设置trace 模块回调void
startNetworkTrace(ZegoNetworkTraceConfig config)
开始网络trace测试void
stopNetworkTrace()
停止trace测试
-
-
-
Method Detail
-
getInstance
public static ZegoNetworktrace getInstance()
获取 ZegoNetworktrace 的单例对象。 注意:必须在 ZegoLiveRoom setSDKContext(SDKContext) 后调用。
-
setNetworkTraceCallback
public void setNetworkTraceCallback(IZegoNetworkTraceCallback callback)
设置trace 模块回调- Parameters:
callback
- 回调
-
startNetworkTrace
public void startNetworkTrace(ZegoNetworkTraceConfig config)
开始网络trace测试- Parameters:
config
- 配置参数
-
stopNetworkTrace
public void stopNetworkTrace()
停止trace测试
-
-