# PushConnectivityManager

public class PushConnectivityManager

## Types

NetworkType
Link copied to clipboard
public enum NetworkType

## Properties

networkType
Link copied to clipboard
public PushConnectivityManager.NetworkType networkType

## Functions

cancelHeartbeat
Link copied to clipboard
public void cancelHeartbeat()
取消心跳。
connect
Link copied to clipboard
public void connect()
customPing
Link copied to clipboard
public void customPing()
disconnect
Link copied to clipboard
public void disconnect()
getInstance
Link copied to clipboard
public static PushConnectivityManager getInstance()
getNetworkType
Link copied to clipboard
public PushConnectivityManager.NetworkType getNetworkType()
init
Link copied to clipboard
public synchronized void init(Context context, String deviceId, String appKey)
isInitialized
Link copied to clipboard
public boolean isInitialized()
onPingTimeout
Link copied to clipboard
public void onPingTimeout()
ping
Link copied to clipboard
public void ping()
sendRegistrationIDToServer
Link copied to clipboard
public void sendRegistrationIDToServer(String regInfo)
setNetworkType
Link copied to clipboard
public void setNetworkType(PushConnectivityManager.NetworkType networkType)
setNextHeartbeat
Link copied to clipboard
public void setNextHeartbeat()
设置下次心跳.
setServerDomain
Link copied to clipboard
public void setServerDomain(String domain)
startPingTimer
Link copied to clipboard
public void startPingTimer()
启动 ping 命令超时计时器。
stopPingTimer
Link copied to clipboard
public void stopPingTimer()
停止 ping 命令计时器。
uninit
Link copied to clipboard
public void uninit()