public class AVPushMessageListener extends Object implements AVConnectionListener
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_ID |
| 限定符和类型 | 方法和说明 |
|---|---|
static AVPushMessageListener |
getInstance() |
AVNotificationManager |
getNotificationManager() |
void |
onError(Integer requestKey,
Messages.ErrorCommand errorCommand) |
void |
onMessageArriving(String peerId,
Integer requestKey,
Messages.GenericCommand genericCommand) |
void |
onWebSocketClose() |
void |
onWebSocketOpen() |
void |
setNotificationManager(AVNotificationManager manager) |
public static AVPushMessageListener getInstance()
public void setNotificationManager(AVNotificationManager manager)
public AVNotificationManager getNotificationManager()
public void onWebSocketOpen()
onWebSocketOpen 在接口中 AVConnectionListenerpublic void onWebSocketClose()
onWebSocketClose 在接口中 AVConnectionListenerpublic void onMessageArriving(String peerId, Integer requestKey, Messages.GenericCommand genericCommand)
onMessageArriving 在接口中 AVConnectionListenerpublic void onError(Integer requestKey, Messages.ErrorCommand errorCommand)
onError 在接口中 AVConnectionListenerCopyright © 2019. All rights reserved.