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