NIMSDK-AOS  9.15.0
静态 Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.avchat.AVChatNetDetector类 参考

网络探测接口 更多...

静态 Public 成员函数

static void setCustomNetDetectServer (String url)
 设置自定义网络探测的服务器地址 更多...
 
static String startNetDetect (int type, AVChatNetDetectCallback callback)
 开始探测任务 更多...
 
static String startNetDetect (AVChatNetDetectCallback callback)
 开始探测任务 使用音频模式探测 更多...
 
static void stopNetDetect (String id)
 停止探测 更多...
 

详细描述

网络探测接口

在文件 AVChatNetDetector.java17 行定义.

成员函数说明

◆ setCustomNetDetectServer()

static void com.netease.nimlib.sdk.avchat.AVChatNetDetector.setCustomNetDetectServer ( String  url)
static

设置自定义网络探测的服务器地址

参数
url自定义网络探测地址

在文件 AVChatNetDetector.java23 行定义.

◆ startNetDetect() [1/2]

static String com.netease.nimlib.sdk.avchat.AVChatNetDetector.startNetDetect ( int  type,
AVChatNetDetectCallback  callback 
)
static

开始探测任务

参数
type探测类型 AVChatNetDetectType
callback探测结果回调
返回
探测任务ID

在文件 AVChatNetDetector.java35 行定义.

◆ startNetDetect() [2/2]

static String com.netease.nimlib.sdk.avchat.AVChatNetDetector.startNetDetect ( AVChatNetDetectCallback  callback)
static

开始探测任务 使用音频模式探测

参数
callback探测结果回调
返回
探测任务ID

在文件 AVChatNetDetector.java45 行定义.

◆ stopNetDetect()

static void com.netease.nimlib.sdk.avchat.AVChatNetDetector.stopNetDetect ( String  id)
static

停止探测

参数
id探测任务ID

在文件 AVChatNetDetector.java54 行定义.


该类的文档由以下文件生成: