public class LCPushMessageListener extends Object implements cn.leancloud.session.LCConnectionListener
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_ID |
| 限定符和类型 | 方法和说明 |
|---|---|
static LCPushMessageListener |
getInstance() |
LCNotificationManager |
getNotificationManager() |
void |
onError(Integer requestKey,
Messages.ErrorCommand errorCommand) |
void |
onMessageArriving(String peerId,
Integer requestKey,
Messages.GenericCommand genericCommand) |
void |
onWebSocketClose() |
void |
onWebSocketOpen() |
void |
setNotificationManager(LCNotificationManager manager) |
public static LCPushMessageListener getInstance()
public void setNotificationManager(LCNotificationManager manager)
public LCNotificationManager getNotificationManager()
public void onWebSocketOpen()
onWebSocketOpen 在接口中 cn.leancloud.session.LCConnectionListenerpublic void onWebSocketClose()
onWebSocketClose 在接口中 cn.leancloud.session.LCConnectionListenerpublic void onMessageArriving(String peerId, Integer requestKey, Messages.GenericCommand genericCommand)
onMessageArriving 在接口中 cn.leancloud.session.LCConnectionListenerpublic void onError(Integer requestKey, Messages.ErrorCommand errorCommand)
onError 在接口中 cn.leancloud.session.LCConnectionListenerCopyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.