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