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()
启动 ping 命令超时计时器。 void
stopPingTimer()
停止 ping 命令计时器。 void
setNextHeartbeat()
设置下次心跳. void
cancelHeartbeat()
取消心跳。 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()
启动 ping 命令超时计时器。
-
stopPingTimer
void stopPingTimer()
停止 ping 命令计时器。
-
setNextHeartbeat
void setNextHeartbeat()
设置下次心跳.
-
cancelHeartbeat
void cancelHeartbeat()
取消心跳。
-
uninit
void uninit()
-
-
-
-