hyphenate_SDK3.0  3.0.1
hyphenatejavaIMSDK
Static Public Member Functions | List of all members
com.hyphenate.util.NetUtils Class Reference

Static Public Member Functions

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)
 

Member Function Documentation

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

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

Check the network connection is available

Parameters
context
Returns
static boolean com.hyphenate.util.NetUtils.isWifiConnection ( Context  context)
static

check the current network connection is wifi connection or not

Parameters
context
Returns

The documentation for this class was generated from the following file: