public interface ChatRoomServiceObserver
限定符和类型 | 方法和说明 |
---|---|
void |
observeAttachmentProgress(Observer<AttachmentProgress> observer,
boolean register)
注册/注销消息附件上传/下载进度观察者,以message id作为key
|
void |
observeCdnRequestData(Observer<CdnRequestData> observer,
boolean register)
注册/注销SDK数据上报观察者
|
void |
observeKickOutEvent(Observer<ChatRoomKickOutEvent> observer,
boolean register)
注册/注销被踢出聊天室观察者。
|
void |
observeMsgStatus(Observer<ChatRoomMessage> observer,
boolean register)
注册/注销消息状态变化观察者
|
void |
observeOnlineStatus(Observer<ChatRoomStatusChangeData> observer,
boolean register)
注册/注销聊天室在线状态/登录状态观察者
|
void |
observeReceiveMessage(Observer<java.util.List<ChatRoomMessage>> observer,
boolean register)
注册/注销消息接收观察者。
|
void |
observeTagsUpdate(Observer<ChatRoomTagsUpdateEvent> observer,
boolean register)
注册/注销我的标签更新观察者
|
void observeOnlineStatus(Observer<ChatRoomStatusChangeData> observer, boolean register)
observer
- 观察者, 参数为聊天室ID和聊天室状态(未进入、连接中、进入中、已进入)register
- true为注册,false为注销void observeKickOutEvent(Observer<ChatRoomKickOutEvent> observer, boolean register)
observer
- 观察者, 参数为被踢出的事件(可以获取被踢出的聊天室ID和被踢出的原因)register
- true为注册,false为注销void observeReceiveMessage(Observer<java.util.List<ChatRoomMessage>> observer, boolean register)
observer
- 观察者,参数为收到的消息集合register
- true为注册,false为注销void observeMsgStatus(Observer<ChatRoomMessage> observer, boolean register)
observer
- 观察者,参数为改变的消息体,更改的状态可能包含status和attachStatusregister
- true为注册,false为注销void observeAttachmentProgress(Observer<AttachmentProgress> observer, boolean register)
observer
- 观察者, 参数为附件的传输进度register
- true为注册,false为注销void observeCdnRequestData(Observer<CdnRequestData> observer, boolean register)
observer
- 观察者register
- true为注册,false为注销void observeTagsUpdate(Observer<ChatRoomTagsUpdateEvent> observer, boolean register)
observer
- 观察者register
- true为注册,false为注销