public class AVChatNetDetector
extends java.lang.Object
Constructor and Description |
---|
AVChatNetDetector() |
Modifier and Type | Method and Description |
---|---|
static void |
setCustomNetDetectServer(java.lang.String url)
Set a custom URL for network detection
|
static java.lang.String |
startNetDetect(AVChatNetDetectCallback callback)
Start network detection
Detect the network connection using audio mode
|
static java.lang.String |
startNetDetect(int type,
AVChatNetDetectCallback callback)
Start network detection
|
static void |
stopNetDetect(java.lang.String id)
Stop detection
|
public static void setCustomNetDetectServer(java.lang.String url)
url
- custom URLpublic static java.lang.String startNetDetect(int type, AVChatNetDetectCallback callback)
type
- detection type AVChatNetDetectType
callback
- callback for the detection resultpublic static java.lang.String startNetDetect(AVChatNetDetectCallback callback)
callback
- callback for the detection resultpublic static void stopNetDetect(java.lang.String id)
id
- detection task ID