类 LCPushMessageListener
- java.lang.Object
-
- cn.leancloud.push.LCPushMessageListener
-
- 所有已实现的接口:
cn.leancloud.session.LCConnectionListener
public class LCPushMessageListener extends java.lang.Object implements cn.leancloud.session.LCConnectionListener
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringDEFAULT_ID
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static LCPushMessageListenergetInstance()LCNotificationManagergetNotificationManager()voidonError(java.lang.Integer requestKey, Messages.ErrorCommand errorCommand)voidonMessageArriving(java.lang.String peerId, java.lang.Integer requestKey, Messages.GenericCommand genericCommand)voidonWebSocketClose()voidonWebSocketOpen()voidsetNotificationManager(LCNotificationManager manager)
-
-
-
字段详细资料
-
DEFAULT_ID
public static final java.lang.String DEFAULT_ID
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getInstance
public static LCPushMessageListener getInstance()
-
setNotificationManager
public void setNotificationManager(LCNotificationManager manager)
-
getNotificationManager
public LCNotificationManager getNotificationManager()
-
onWebSocketOpen
public void onWebSocketOpen()
- 指定者:
onWebSocketOpen在接口中cn.leancloud.session.LCConnectionListener
-
onWebSocketClose
public void onWebSocketClose()
- 指定者:
onWebSocketClose在接口中cn.leancloud.session.LCConnectionListener
-
onMessageArriving
public void onMessageArriving(java.lang.String peerId, java.lang.Integer requestKey, Messages.GenericCommand genericCommand)- 指定者:
onMessageArriving在接口中cn.leancloud.session.LCConnectionListener
-
onError
public void onError(java.lang.Integer requestKey, Messages.ErrorCommand errorCommand)- 指定者:
onError在接口中cn.leancloud.session.LCConnectionListener
-
-