Package io.rong.push.rongpush
Class PushConnectivityManager
-
- All Implemented Interfaces:
public class PushConnectivityManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumPushConnectivityManager.NetworkType
-
Field Summary
Fields Modifier and Type Field Description public PushConnectivityManager.NetworkTypenetworkType
-
Method Summary
Modifier and Type Method Description PushConnectivityManager.NetworkTypegetNetworkType()voidsetNetworkType(PushConnectivityManager.NetworkType networkType)static PushConnectivityManagergetInstance()booleanisInitialized()synchronized voidinit(Context context, String deviceId, String appKey)voidsetServerDomain(String domain)voidconnect()voidping()voidcustomPing()voidonPingTimeout()voidsendRegistrationIDToServer(String regInfo)voiddisconnect()voidstartPingTimer()Starts the ping command timeout timer. voidstopPingTimer()Stop the ping command timer. voidsetNextHeartbeat()Set the next heartbeat. voidcancelHeartbeat()Disables the heartbeat. voiduninit()-
-
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()
-
-
-
-