NIMSDK-AOS 10.3.0-beta
载入中...
搜索中...
未找到
QChatServiceObserver.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.qchat;
2
3import com.netease.nimlib.apt.annotation.NIMService;
4import com.netease.nimlib.invocation.ObserverInterface;
5import com.netease.nimlib.sdk.Observer;
6import com.netease.nimlib.sdk.msg.model.AttachmentProgress;
7import com.netease.nimlib.sdk.qchat.event.QChatKickedOutEvent;
8import com.netease.nimlib.sdk.qchat.event.QChatMessageDeleteEvent;
9import com.netease.nimlib.sdk.qchat.event.QChatMessageRevokeEvent;
10import com.netease.nimlib.sdk.qchat.event.QChatMessageUpdateEvent;
11import com.netease.nimlib.sdk.qchat.event.QChatMultiSpotLoginEvent;
12import com.netease.nimlib.sdk.qchat.event.QChatServerUnreadInfoChangedEvent;
13import com.netease.nimlib.sdk.qchat.event.QChatStatusChangeEvent;
14import com.netease.nimlib.sdk.qchat.event.QChatSystemNotificationUpdateEvent;
15import com.netease.nimlib.sdk.qchat.event.QChatUnreadInfoChangedEvent;
16import com.netease.nimlib.sdk.qchat.model.QChatMessage;
17import com.netease.nimlib.sdk.qchat.model.QChatPushConfig;
18import com.netease.nimlib.sdk.qchat.model.QChatSystemNotification;
19import com.netease.nimlib.sdk.qchat.model.QChatTypingEvent;
20import java.util.List;
21
22@NIMService("圈组观察者")
23@ObserverInterface
24public interface QChatServiceObserver {
31 void observeStatusChange(Observer<QChatStatusChangeEvent> observer, boolean register);
32
41
48 void observeKickedOut(Observer<QChatKickedOutEvent> observer, boolean register);
49
56 void observeReceiveMessage(Observer<List<QChatMessage>> observer, boolean register);
57
65
73
81
91
101
108 void observeMessageStatusChange(Observer<QChatMessage> observer, boolean register);
109
117
123 void observeReceiveSystemNotification(Observer<List<QChatSystemNotification>> observer, boolean register);
124
132
139
146}
void observeReceiveMessage(Observer< List< QChatMessage > > observer, boolean register)
注册/注销消息接收观察者。
void observeReceiveSystemNotification(Observer< List< QChatSystemNotification > > observer, boolean register)
注册/注销系统通知接收事件观察者
void observeServerUnreadInfoChanged(Observer< QChatServerUnreadInfoChangedEvent > observer, boolean register)
注册/注销服务器未读通知接收观察者。 订阅、标记消息已读、收到新消息或新消息通知会触发该通知 如果服务器前后未读数没有发生变化将不会触发
void observePushNoDisturbConfigUpdate(Observer< QChatPushConfig > observer, boolean register)
注册/注销推送免打扰配置更新观察者
void observeSystemNotificationUpdate(Observer< QChatSystemNotificationUpdateEvent > observer, boolean register)
注册/注销系统通知更新观察者
void observeUnreadInfoChanged(Observer< QChatUnreadInfoChangedEvent > observer, boolean register)
注册/注销新的未读通知接收观察者。 订阅、标记消息已读、收到新消息或新消息通知会触发该通知 通知事件内的新未读状态可能没有实际变更,比如重复调用订阅接口触发的变更事件
void observeAttachmentProgress(Observer< AttachmentProgress > observer, boolean register)
注册/注销消息附件上传/下载进度观察者,以message id作为key
void observeMultiSpotLogin(Observer< QChatMultiSpotLoginEvent > observer, boolean register)
注册/注销多端登录状态观察者。当有其他端登录或者注销时,会通过此接口通知到UI。 登录成功后,如果有其他端登录着,也会发出通知。
void observeMessageDelete(Observer< QChatMessageDeleteEvent > observer, boolean register)
注册/注销消息删除观察者
void observeMessageUpdate(Observer< QChatMessageUpdateEvent > observer, boolean register)
注册/注销消息更新观察者
void observeStatusChange(Observer< QChatStatusChangeEvent > observer, boolean register)
注册/注销圈组在线状态/登录状态观察者
void observeMessageRevoke(Observer< QChatMessageRevokeEvent > observer, boolean register)
注册/注销消息撤回观察者
void observeKickedOut(Observer< QChatKickedOutEvent > observer, boolean register)
注册/注销被踢出圈组观察者。
void observeReceiveTypingEvent(Observer< QChatTypingEvent > observer, boolean register)
注册/注销正在输入事件观察者
void observeMessageStatusChange(Observer< QChatMessage > observer, boolean register)
注册/注销消息状态变化观察者