public class LCPushMessageListener extends Object implements cn.leancloud.session.LCConnectionListener
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ID |
Modifier and Type | Method and Description |
---|---|
static LCPushMessageListener |
getInstance() |
LCNotificationManager |
getNotificationManager() |
void |
onError(Integer requestKey,
cn.leancloud.Messages.ErrorCommand errorCommand) |
void |
onMessageArriving(String peerId,
Integer requestKey,
cn.leancloud.Messages.GenericCommand genericCommand) |
void |
onWebSocketClose() |
void |
onWebSocketOpen() |
void |
setNotificationManager(LCNotificationManager manager) |
public static final String DEFAULT_ID
public static LCPushMessageListener getInstance()
public void setNotificationManager(LCNotificationManager manager)
public LCNotificationManager getNotificationManager()
public void onWebSocketOpen()
onWebSocketOpen
in interface cn.leancloud.session.LCConnectionListener
public void onWebSocketClose()
onWebSocketClose
in interface cn.leancloud.session.LCConnectionListener
public void onMessageArriving(String peerId, Integer requestKey, cn.leancloud.Messages.GenericCommand genericCommand)
onMessageArriving
in interface cn.leancloud.session.LCConnectionListener
public void onError(Integer requestKey, cn.leancloud.Messages.ErrorCommand errorCommand)
onError
in interface cn.leancloud.session.LCConnectionListener
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.