NIMSDK-AOS 10.4.0-beta
载入中...
搜索中...
未找到
V2NIMConversationListener.java
浏览该文件的文档.
1package com.netease.nimlib.sdk.v2.conversation;
2
3import com.netease.nimlib.sdk.v2.V2NIMError;
4import com.netease.nimlib.sdk.v2.conversation.model.V2NIMConversation;
5import com.netease.nimlib.sdk.v2.conversation.params.V2NIMConversationFilter;
6
7import java.util.List;
8
9public interface V2NIMConversationListener {
10 /**
11 * 同步开始回调
12 */
14 /**
15 * 同步完成回调
16 */
18 /**
19 * 同步失败回调
20 * @param error 同步错误信息
21 */
23 /**
24 * 会话创建回调
25 * @param conversation 创建的会话
26 */
28 /**
29 * 会话删除回调
30 * @param conversationIds 删除的会话id列表
31 */
32 void onConversationDeleted(List<String> conversationIds);
33 /**
34 * 会话改变回调
35 * @param conversationList 改变的会话列表
36 */
37 void onConversationChanged(List<V2NIMConversation> conversationList);
38 /**
39 * 总未读数改变回调
40 * @param unreadCount 总未读数
41 */
42 void onTotalUnreadCountChanged(int unreadCount);
43
44 /**
45 * 未读数改变回调
46 * @param filter 会话过滤器
47 * @param unreadCount 未读数
48 */
50
51 /**
52 * 账号多端登录会话已读时间戳标记通知
53 * 账号A登录设备D1, D2, D1会话已读时间戳标记,同步到D2成员
54 * @param conversationId 同步标记的会话ID
55 * @param readTime 标记的时间戳
56 */
57 void onConversationReadTimeUpdated(String conversationId, long readTime);
58}
void onSyncFailed(V2NIMError error)
同步失败回调
void onUnreadCountChangedByFilter(V2NIMConversationFilter filter, int unreadCount)
未读数改变回调
void onTotalUnreadCountChanged(int unreadCount)
总未读数改变回调
void onConversationReadTimeUpdated(String conversationId, long readTime)
账号多端登录会话已读时间戳标记通知 账号A登录设备D1, D2, D1会话已读时间戳标记,同步到D2成员
void onConversationDeleted(List< String > conversationIds)
会话删除回调
void onConversationCreated(V2NIMConversation conversation)
会话创建回调
void onConversationChanged(List< V2NIMConversation > conversationList)
会话改变回调