ConversationManager class

会话管理器

Inheritance

Constructors

ConversationManager()

Properties

basicMessageChannel BasicMessageChannel<String>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChatting(String sessionId) → void
增加正在会话记录 进入聊天页面时调用该接口
override
addConversationListener(ConversationListener conversationListener) → void
添加会话变更监听
override
clearChattingHistory({required String sessionId}) Future<bool>
删除会话聊天记录 @param sessionId @param syCallback
override
createGroupConversationByGroupId({required String groupId, required SyCallBack<SyConversation> callback}) → void
创建群聊会话对象
override
createSignConversationByContact({required SyContact contact, required SyCallBack<SyConversation> callback}) → void
创建会话对象
override
createSignConversationByUid({required String userId, required SyCallBack<SyConversation> callback}) → void
创建会话对象
override
getAllUnReadNum() Future<int>
获取所有会话未读消息数
override
getAllUnReadNumBySessionType({required SessionTypeEnum sessionType}) Future<int>
根据聊天类型获取所有会话未读消息数
override
getConversationList({required SyCallBack<List<SyConversation>> callback}) → void
获取当前登陆用户的会话列表
override
getSessionIdByUserId(String userId) Future<String>
根据用户ID获取当前会话ID,仅私聊可用
override
getUnReadNum(String sessionId) Future<int>
获取会话未读消息数
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChatting(String sessionId) → void
退出聊天页面时调用
override
removeConversation({required String sessionId, required SyCallBack<bool> callback}) → void
移除会话
override
removeConversationListener(ConversationListener conversationListener) → void
移除会话变更监听
override
restAllUnReadNum({SessionTypeEnum? sessionType}) Future<bool?>
override
restUnReadCount(String sessionId) → void
刷新会话未读消息数量 @param sessionId
override
setConversationTopping({required String sessionId, required dynamic topping, required SyCallBack<bool> callback}) → void
设置会话是否置顶
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited