Java 类org.jivesoftware.smackx.ping.PingFailedListener 实例源码

项目:quickblox-android    文件:CallService.java   
private void initPingListener() {
    ChatPingAlarmManager.onCreate(this);
    ChatPingAlarmManager.getInstanceFor().addPingListener(new PingFailedListener() {
        @Override
        public void pingFailed() {
            Log.d(TAG, "Ping chat server failed");
        }
    });
}
项目:quickblox-android    文件:ChatPingAlarmManager.java   
public void addPingListener(PingFailedListener pingFailedListener) {
    this.pingFailedListener = pingFailedListener;
}