public interface MsgServiceObserve
Modifier and Type | Method and Description |
---|---|
void |
observeAddMsgPin(Observer<MsgPinSyncResponseOption> observer,
boolean register)
Synchronous response to adding a quick comment
|
void |
observeAddQuickComment(Observer<HandleQuickCommentOption> observer,
boolean register)
Synchronous response to adding a quick comment
|
void |
observeAddStickTopSession(Observer<StickTopSessionInfo> observer,
boolean register)
Synchronous response to adding a pinned session
|
void |
observeAttachmentProgress(Observer<AttachmentProgress> observer,
boolean register)
Register or unregister the observer for the upload or download progress of attachment.
|
void |
observeBroadcastMessage(Observer<BroadcastMessage> observer,
boolean register)
Register or unregister the observer for messages broadcast to all members
|
void |
observeCustomNotification(Observer<CustomNotification> observer,
boolean register)
Register or unregister the observer for receiving custom notifications
|
void |
observeDeleteMsgSelf(Observer<IMMessage> observer,
boolean register)
Register or unregister the observer for deleting a message.
|
void |
observeDeleteMsgSelfBatch(Observer<java.util.List<IMMessage>> observer,
boolean register)
Register or unregister the observer for deleting multiple messages
|
void |
observeDeleteSessionHistoryMsgs(Observer<java.util.List<SessionMsgDeleteOption>> observer,
boolean register)
Register or unregister the observer for deleting session history messages
|
void |
observeMessageReceipt(Observer<java.util.List<MessageReceipt>> observer,
boolean register)
Register or unregister the observer for read receipts
|
void |
observeMsgStatus(Observer<IMMessage> observer,
boolean register)
Register or unregister the observer for status changes of messages
|
void |
observeReceiveMessage(Observer<java.util.List<IMMessage>> observer,
boolean register)
Register or unregister the observer for receiving messages.
|
void |
observeRecentContact(Observer<java.util.List<RecentContact>> observer,
boolean register)
Register or unregister the observer for changes of recent contact list
|
void |
observeRecentContactDeleted(Observer<RecentContact> observer,
boolean register)
Register or unregister the observer for recent deleted contacts
Recent contacts except deleted by calling MsgService.deleteRecentContact(RecentContact)
Delete events will trigger the callback. |
void |
observeRemoveMsgPin(Observer<MsgPinSyncResponseOption> observer,
boolean register)
Synchronous response to removing a PIN message.
|
void |
observeRemoveQuickComment(Observer<HandleQuickCommentOption> observer,
boolean register)
Synchronous response to deleting a quick comment
|
void |
observeRemoveStickTopSession(Observer<StickTopSessionInfo> observer,
boolean register)
Synchronous response to removing a pinned session
|
void |
observeRevokeMessage(Observer<RevokeMsgNotification> observer,
boolean register)
Register or unregister the observer for message recalls
|
void |
observeRoamMsgHasMore(Observer<java.util.List<RoamMsgHasMoreOption>> observer,
boolean register)
Synchronous response for evaluating complete roaming messages.
|
void |
observeSyncStickTopSession(Observer<java.util.List<StickTopSessionInfo>> observer,
boolean register)
Synchronous response to syncing pinned sessions with multiple devices.
|
void |
observeTeamMessageReceipt(Observer<java.util.List<TeamMessageReceipt>> observer,
boolean register)
Register or unregister the observer for read receipts in groups.
|
void |
observeUpdateMsgPin(Observer<MsgPinSyncResponseOption> observer,
boolean register)
Synchronous response to updating a quick comment
|
void |
observeUpdateMySession(Observer<RecentSession> observer,
boolean register)
Register or unregister the observer for updating sessions
|
void |
observeUpdateStickTopSession(Observer<StickTopSessionInfo> observer,
boolean register)
Synchronous response to updating the extension field of a pinned session
|
void observeReceiveMessage(Observer<java.util.List<IMMessage>> observer, boolean register)
MsgService.saveMessageToLocal(IMMessage, boolean)
with the notify parameter set to true.observer
- The observer. The parameter is the list of received messages. All messages in the list are sent from the same chat object.register
- true: register the observer; false: unregister the observer.void observeMsgStatus(Observer<IMMessage> observer, boolean register)
observer
- The observer. The parameter is changed message body. The changed status includes status and attachStatus.register
- true: register the observer; false: unregister the observer.void observeMessageReceipt(Observer<java.util.List<MessageReceipt>> observer, boolean register)
observer
- The observer. The parameter is the read receipts.register
- true: register the observer; false: unregister the observer.void observeTeamMessageReceipt(Observer<java.util.List<TeamMessageReceipt>> observer, boolean register)
observer
- The observer. The parameter is the read receiptsregister
- true: register the observer; false: unregister the observer.void observeAttachmentProgress(Observer<AttachmentProgress> observer, boolean register)
observer
- The observer. The parameter is the transmission progress of the attachment.register
- true: register the observer; false: unregister the observer.void observeRecentContact(Observer<java.util.List<RecentContact>> observer, boolean register)
observer
- The observer. The parameter is the changed recent contact listregister
- true: register the observer; false: unregister the observer.void observeRecentContactDeleted(Observer<RecentContact> observer, boolean register)
MsgService.deleteRecentContact(RecentContact)
Delete events will trigger the callback. observer
- The observer. The parameter is the recently deleted contacts. If the parameter is null, all contacts are deleted.register
- true: register the observer; false: unregister the observer.void observeCustomNotification(Observer<CustomNotification> observer, boolean register)
observer
- The observer. The parameter is the received custom message.register
- true: register the observer; false: unregister the observer.void observeRevokeMessage(Observer<RevokeMsgNotification> observer, boolean register)
observer
- The observer. The parameter is the recalled message..register
- true: register the observer; false: unregister the observer.void observeBroadcastMessage(Observer<BroadcastMessage> observer, boolean register)
observer
- The observer. The parameter is the broardcast message..register
- true: register the observer; false: unregister the observer.void observeUpdateMySession(Observer<RecentSession> observer, boolean register)
observer
- The observer. The parameter is the updated session inforegister
- true: register the observer; false: unregister the observer.void observeDeleteMsgSelf(Observer<IMMessage> observer, boolean register)
observer
- The observer. The parameter is info of the deleted message.register
- true: register the observer; false: unregister the observer.void observeDeleteMsgSelfBatch(Observer<java.util.List<IMMessage>> observer, boolean register)
observer
- The observer. The parameter is info of the deleted message.register
- true: register the observer; false: unregister the observer.void observeDeleteSessionHistoryMsgs(Observer<java.util.List<SessionMsgDeleteOption>> observer, boolean register)
observer
- The observer. The parameter is the clear operation inforegister
- true: register the observer; false: unregister the observer.void observeRoamMsgHasMore(Observer<java.util.List<RoamMsgHasMoreOption>> observer, boolean register)
observer
- The observer. The parameter is the first message of roaming messages.register
- true: register the observer; false: unregister the observer.void observeAddQuickComment(Observer<HandleQuickCommentOption> observer, boolean register)
observer
- The observer. The parameter takes two parts: First the message and the other is the comment.register
- true: register the observer; false: unregister the observer.void observeRemoveQuickComment(Observer<HandleQuickCommentOption> observer, boolean register)
observer
- The observer. The parameter takes two parts: First the message and the other is the comment.register
- true: register the observer; false: unregister the observer.void observeAddMsgPin(Observer<MsgPinSyncResponseOption> observer, boolean register)
observer
- The observer. The parameter includes the PIN message MessageKey
,
and PIN info MsgPinOption
register
- true: register the observer; false: unregister the observer.void observeUpdateMsgPin(Observer<MsgPinSyncResponseOption> observer, boolean register)
observer
- The observer. The parameter includes the PIN message MessageKey
,
and PIN info MsgPinOption
register
- true: register the observer; false: unregister the observer.void observeRemoveMsgPin(Observer<MsgPinSyncResponseOption> observer, boolean register)
observer
- The observer. The parameter includes the PIN message MessageKey
,
and PIN info MsgPinOption
register
- true: register the observer; false: unregister the observer.void observeSyncStickTopSession(Observer<java.util.List<StickTopSessionInfo>> observer, boolean register)
observer
- The observer. The parameter is the information of the pinned sessionregister
- true: register the observer; false: unregister the observer.void observeAddStickTopSession(Observer<StickTopSessionInfo> observer, boolean register)
observer
- The observer. The parameter is the information of the pinned sessionregister
- true: register the observer; false: unregister the observer.void observeRemoveStickTopSession(Observer<StickTopSessionInfo> observer, boolean register)
observer
- The observer. The parameter including the information of the deleted pinned session and the time.register
- true: register the observer; false: unregister the observer.void observeUpdateStickTopSession(Observer<StickTopSessionInfo> observer, boolean register)
observer
- The observer. The parameter is the information of the pinned sessionregister
- true: register the observer; false: unregister the observer.