Package io.rong.push.rongpush
Class PushConnectivityManager
-
- All Implemented Interfaces:
public class PushConnectivityManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
PushConnectivityManager.NetworkType
-
Field Summary
Fields Modifier and Type Field Description public PushConnectivityManager.NetworkType
networkType
-
Method Summary
Modifier and Type Method Description PushConnectivityManager.NetworkType
getNetworkType()
void
setNetworkType(PushConnectivityManager.NetworkType networkType)
static PushConnectivityManager
getInstance()
boolean
isInitialized()
synchronized void
init(Context context, String deviceId, String appKey)
void
setServerDomain(String domain)
void
connect()
void
ping()
void
customPing()
void
onPingTimeout()
void
sendRegistrationIDToServer(String regInfo)
void
disconnect()
void
startPingTimer()
Starts the ping command timeout timer. void
stopPingTimer()
Stop the ping command timer. void
setNextHeartbeat()
Set the next heartbeat. void
cancelHeartbeat()
Disables the heartbeat. void
uninit()
-
-
Method Detail
-
getNetworkType
PushConnectivityManager.NetworkType getNetworkType()
-
setNetworkType
void setNetworkType(PushConnectivityManager.NetworkType networkType)
-
getInstance
static PushConnectivityManager getInstance()
-
isInitialized
boolean isInitialized()
-
init
synchronized void init(Context context, String deviceId, String appKey)
-
setServerDomain
void setServerDomain(String domain)
-
connect
void connect()
-
ping
void ping()
-
customPing
void customPing()
-
onPingTimeout
void onPingTimeout()
-
sendRegistrationIDToServer
void sendRegistrationIDToServer(String regInfo)
-
disconnect
void disconnect()
-
startPingTimer
void startPingTimer()
Starts the ping command timeout timer.
-
stopPingTimer
void stopPingTimer()
Stop the ping command timer.
-
setNextHeartbeat
void setNextHeartbeat()
Set the next heartbeat.
-
cancelHeartbeat
void cancelHeartbeat()
Disables the heartbeat.
-
uninit
void uninit()
-
-
-
-