public interface MsgServiceObserve
限定符和类型 | 方法和说明 |
---|---|
void |
observeAddMsgPin(Observer<MsgPinSyncResponseOption> observer,
boolean register)
添加一条消息PIN的同步回包
|
void |
observeAddQuickComment(Observer<HandleQuickCommentOption> observer,
boolean register)
增加一条快捷评论的同步回包
|
void |
observeAddStickTopSession(Observer<StickTopSessionInfo> observer,
boolean register)
增加一条置顶会话的多端同步回包
|
void |
observeAttachmentProgress(Observer<AttachmentProgress> observer,
boolean register)
注册/注销消息附件上传/下载进度观察者,以message id作为key
|
void |
observeBroadcastMessage(Observer<BroadcastMessage> observer,
boolean register)
注册/注销全员广播消息观察者
|
void |
observeCustomNotification(Observer<CustomNotification> observer,
boolean register)
注册/注销自定义通知接收观察者
|
void |
observeDeleteMsgSelf(Observer<IMMessage> observer,
boolean register)
单向删除消息的同步通知
|
void |
observeDeleteMsgSelfBatch(Observer<java.util.List<IMMessage>> observer,
boolean register)
单向删除多条消息的同步通知
|
void |
observeDeleteSessionHistoryMsgs(Observer<java.util.List<SessionMsgDeleteOption>> observer,
boolean register)
清除在线会话消息的多端同步回包
|
void |
observeMessageReceipt(Observer<java.util.List<MessageReceipt>> observer,
boolean register)
注册/注销消息已读回执观察者
|
void |
observeMsgStatus(Observer<IMMessage> observer,
boolean register)
注册/注销消息状态变化观察者
|
void |
observeReceiveMessage(Observer<java.util.List<IMMessage>> observer,
boolean register)
注册/注销消息接收观察者。
|
void |
observeRecentContact(Observer<java.util.List<RecentContact>> observer,
boolean register)
注册/注销最近联系人列表变化观察者
|
void |
observeRecentContactDeleted(Observer<RecentContact> observer,
boolean register)
注册/注销最近联系人被删除的观察者。
|
void |
observeRemoveMsgPin(Observer<MsgPinSyncResponseOption> observer,
boolean register)
移除一条消息PIN的同步回包
|
void |
observeRemoveQuickComment(Observer<HandleQuickCommentOption> observer,
boolean register)
删除一条快捷评论的同步回包
|
void |
observeRemoveStickTopSession(Observer<StickTopSessionInfo> observer,
boolean register)
移除一条置顶会话的多端同步回包
|
void |
observeRevokeMessage(Observer<RevokeMsgNotification> observer,
boolean register)
注册/注销消息撤回的观察者
|
void |
observeRoamMsgHasMore(Observer<java.util.List<RoamMsgHasMoreOption>> observer,
boolean register)
漫游消息是否完整的同步回包,不完整时才回包
|
void |
observeSyncStickTopSession(Observer<java.util.List<StickTopSessionInfo>> observer,
boolean register)
同步置顶会话的多端同步回包
|
void |
observeTeamMessageReceipt(Observer<java.util.List<TeamMessageReceipt>> observer,
boolean register)
注册/注销群消息已读回执观察者(群成员发出需要已读回执的消息时,当有群成员已读后,该观察者会回调)
|
void |
observeUpdateMsgPin(Observer<MsgPinSyncResponseOption> observer,
boolean register)
更新一条消息PIN的同步回包
|
void |
observeUpdateMySession(Observer<RecentSession> observer,
boolean register)
【会话服务】注册/注销更新会话观察者
|
void |
observeUpdateStickTopSession(Observer<StickTopSessionInfo> observer,
boolean register)
更新一条置顶会话的扩展字段的多端同步回包
|
void observeReceiveMessage(Observer<java.util.List<IMMessage>> observer, boolean register)
MsgService.saveMessageToLocal(IMMessage, boolean)
后,notify参数设置为true,通知出来的消息。observer
- 观察者, 参数为收到的消息列表,消息列表中的消息均保证来自同一个聊天对象。register
- true为注册,false为注销void observeMsgStatus(Observer<IMMessage> observer, boolean register)
observer
- 观察者, 参数为改变的消息体,更改的状态可能包含status和attachStatus和isInBlackListregister
- true为注册,false为注销void observeMessageReceipt(Observer<java.util.List<MessageReceipt>> observer, boolean register)
observer
- 观察者, 参数为已读回执集合。register
- true为注册,false为注销void observeTeamMessageReceipt(Observer<java.util.List<TeamMessageReceipt>> observer, boolean register)
observer
- 观察者,参数为已读回执信息集合register
- true为注册,false为注销void observeAttachmentProgress(Observer<AttachmentProgress> observer, boolean register)
observer
- 观察者, 参数为附件的传输进度register
- true为注册,false为注销void observeRecentContact(Observer<java.util.List<RecentContact>> observer, boolean register)
observer
- 观察者,参数为变化的最近联系人列表register
- true为注册,false为注销void observeRecentContactDeleted(Observer<RecentContact> observer, boolean register)
MsgService.deleteRecentContact(RecentContact)
引起外,其他最近联系人的
删除事件会触发次观察者通知。observer
- 观察者,参数为被删除的最近联系人资料。如果参数为null,表示整个联系人列表被清空了。register
- true为注册,false为注销void observeCustomNotification(Observer<CustomNotification> observer, boolean register)
observer
- 观察者,参数为收到的自定义通知register
- true为注册,false为注销void observeRevokeMessage(Observer<RevokeMsgNotification> observer, boolean register)
observer
- 观察者,参数为被撤回的消息。register
- true为注册,false为注销void observeBroadcastMessage(Observer<BroadcastMessage> observer, boolean register)
observer
- 观察者,参数全员广播消息。register
- true为注册,false为注销void observeUpdateMySession(Observer<RecentSession> observer, boolean register)
observer
- 观察者,参数为更新后的会话信息register
- true为注册,false为注销void observeDeleteMsgSelf(Observer<IMMessage> observer, boolean register)
observer
- 观察者,参数为同步结果被删除的消息的部分信息register
- true为注册,false为注销void observeDeleteMsgSelfBatch(Observer<java.util.List<IMMessage>> observer, boolean register)
observer
- 观察者,参数为同步结果被删除的消息的部分信息register
- true为注册,false为注销void observeDeleteSessionHistoryMsgs(Observer<java.util.List<SessionMsgDeleteOption>> observer, boolean register)
observer
- 观察者,参数为清空操作的信息register
- true为注册,false为注销void observeRoamMsgHasMore(Observer<java.util.List<RoamMsgHasMoreOption>> observer, boolean register)
observer
- 观察者,参数为每个会话中完整漫游消息列中最早的一条的信息register
- true为注册,false为注销void observeAddQuickComment(Observer<HandleQuickCommentOption> observer, boolean register)
observer
- 观察者,参数有两部分构成,一部分可以确定被评论的消息;另一部分是评论信息register
- true为注册,false为注销void observeRemoveQuickComment(Observer<HandleQuickCommentOption> observer, boolean register)
observer
- 观察者,参数有两部分构成,一部分可以确定被评论的消息;另一部分是评论信息register
- true为注册,false为注销void observeAddMsgPin(Observer<MsgPinSyncResponseOption> observer, boolean register)
observer
- 观察者,参数包含被PIN的消息MessageKey
,
以及PIN的信息MsgPinOption
register
- true为注册,false为注销void observeUpdateMsgPin(Observer<MsgPinSyncResponseOption> observer, boolean register)
observer
- 观察者,参数包含被PIN的消息MessageKey
,
以及PIN的信息MsgPinOption
register
- true为注册,false为注销void observeRemoveMsgPin(Observer<MsgPinSyncResponseOption> observer, boolean register)
observer
- 观察者,参数包含被PIN的消息MessageKey
,
以及PIN的信息MsgPinOption
register
- true为注册,false为注销void observeSyncStickTopSession(Observer<java.util.List<StickTopSessionInfo>> observer, boolean register)
observer
- 观察者,参数为会话的置顶信息register
- true为注册,false为注销void observeAddStickTopSession(Observer<StickTopSessionInfo> observer, boolean register)
observer
- 观察者,参数为会话的置顶信息register
- true为注册,false为注销void observeRemoveStickTopSession(Observer<StickTopSessionInfo> observer, boolean register)
observer
- 观察者,参数包括被删除的会话的置顶信息,以及被移除的时间register
- true为注册,false为注销void observeUpdateStickTopSession(Observer<StickTopSessionInfo> observer, boolean register)
observer
- 观察者,参数为会话的置顶信息register
- true为注册,false为注销