hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
静态 Public 成员函数 | 所有成员列表
com.hyphenate.util.NetUtils类 参考

静态 Public 成员函数

static boolean hasNetwork (Context context)
 
static boolean hasDataConnection (Context context)
 
static boolean isWifiConnection (Context context)
 
static int getUploadBufSize (Context context)
 
static int getDownloadBufSize (Context context)
 
static String getNetworkType (Context context)
 

成员函数说明

static int com.hyphenate.util.NetUtils.getUploadBufSize ( Context  context)
static

for wifi connection, we use 100kbytes for write buffer for 3/4G connection, we use 20kbytes for grps, we use 1k

返回
static boolean com.hyphenate.util.NetUtils.hasNetwork ( Context  context)
static

Check the network connection is available

参数
context
返回
static boolean com.hyphenate.util.NetUtils.isWifiConnection ( Context  context)
static

check the current network connection is wifi connection or not

参数
context
返回

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