NIMSDK-AOS  10.9.80
Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener接口 参考

Public 成员函数

void onSyncStarted ()
 同步开始回调 更多...
 
void onSyncFinished ()
 同步完成回调 更多...
 
void onSyncFailed (V2NIMError error)
 同步失败回调 更多...
 
void onConversationCreated (V2NIMConversation conversation)
 会话创建回调 更多...
 
void onConversationDeleted (List< String > conversationIds)
 会话删除回调 更多...
 
void onConversationChanged (List< V2NIMConversation > conversationList)
 会话改变回调 更多...
 
void onTotalUnreadCountChanged (int unreadCount)
 总未读数改变回调 更多...
 
void onUnreadCountChangedByFilter (V2NIMConversationFilter filter, int unreadCount)
 未读数改变回调 更多...
 
void onConversationReadTimeUpdated (String conversationId, long readTime)
 账号多端登录会话已读时间戳标记通知 账号A登录设备D1, D2, D1会话已读时间戳标记,同步到D2成员 更多...
 

详细描述

在文件 V2NIMConversationListener.java8 行定义.

成员函数说明

void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onConversationChanged ( List< V2NIMConversation conversationList)

会话改变回调

参数
conversationList改变的会话列表
void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onConversationCreated ( V2NIMConversation  conversation)

会话创建回调

参数
conversation创建的会话
void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onConversationDeleted ( List< String >  conversationIds)

会话删除回调

参数
conversationIds删除的会话id列表
void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onConversationReadTimeUpdated ( String  conversationId,
long  readTime 
)

账号多端登录会话已读时间戳标记通知 账号A登录设备D1, D2, D1会话已读时间戳标记,同步到D2成员

参数
conversationId同步标记的会话ID
readTime标记的时间戳
弃用:
建议使用 com.netease.nimlib.sdk.v2.conversation.model.V2NIMConversation#getLastReadTime()
void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onSyncFailed ( V2NIMError  error)

同步失败回调

参数
error同步错误信息
void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onSyncFinished ( )

同步完成回调

void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onSyncStarted ( )

同步开始回调

void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onTotalUnreadCountChanged ( int  unreadCount)

总未读数改变回调

参数
unreadCount总未读数
void com.netease.nimlib.sdk.v2.conversation.V2NIMConversationListener.onUnreadCountChangedByFilter ( V2NIMConversationFilter  filter,
int  unreadCount 
)

未读数改变回调

参数
filter会话过滤器
unreadCount未读数

该接口的文档由以下文件生成: