ConversationManager class

Constructors

ConversationManager.new(MethodChannel _channel)

Properties

hashCode int
The hash code for this object.
no setterinherited
listener OnConversationListener
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteAllConversationFromLocal({String? operationID}) Future
Delete conversation from local 删除会话
deleteConversation({required String conversationID, String? operationID}) Future
Delete conversation by id 删除会话
deleteConversationFromLocalAndSvr({required String conversationID, String? operationID}) Future
Delete conversation from local and service 删除会话
getAllConversationList({String? operationID}) Future<List<ConversationInfo>>
Get all conversations 获取所有会话
getAtAllTag() Future
Get @ all member tag 查询at所有人标识
getConversationIDBySessionType({required String sourceID, required int sessionType}) Future
Query conversation id sourceID if it is a single chat, Its value is userID. if it is a group chat, Its value is groupID sessionType if it is a single chat, it value is 1. if it is a group chat, it value is 2 查询会话id sourceID 如果是单聊值传用户ID,如果是群聊值传组ID sessionType 如果是单聊值传1,如果是群聊值传2
getConversationListSplit({int offset = 0, int count = 20, String? operationID}) Future<List<ConversationInfo>>
Paging to get conversation 分页获取会话
getConversationRecvMessageOpt({required List<String> conversationIDList, String? operationID}) Future<List>
Message Do Not Disturb {"conversationId":"single_13922222222","result":0} 查询免打扰状态
getMultipleConversation({required List<String> conversationIDList, String? operationID}) Future<List<ConversationInfo>>
Get conversation list by id list 获取多个会话
getOneConversation({required String sourceID, required int sessionType, String? operationID}) Future<ConversationInfo>
Get a conversation, if it doesn't exist it will be created automatically sourceID if it is a single chat, Its value is userID. if it is a group chat, Its value is groupID sessionType if it is a single chat, it value is 1. if it is a group chat, it value is 2 获取一个会话,如果不存在会自动创建 sourceID 如果是单聊值传用户ID,如果是群聊值传组ID sessionType 如果是单聊值传1,如果是群聊值传2
getTotalUnreadMsgCount({String? operationID}) Future
Get the total number of unread messages 获取未读消息总数
markGroupMessageHasRead({required String groupID, String? operationID}) Future
Mark group chat all messages as read 标记群聊会话已读
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinConversation({required String conversationID, required bool isPinned, String? operationID}) Future
Pinned conversation 置顶会话
resetConversationGroupAtType({required String conversationID, String? operationID}) Future
Reset group converstaion at type 重置at标准位
setConversationDraft({required String conversationID, required String draftText, String? operationID}) Future
Set draft 设置会话草稿
setConversationListener(OnConversationListener listener) Future
Observe conversation changes 会话监听
setConversationRecvMessageOpt({required List<String> conversationIDList, required int status, String? operationID}) Future
Message Do Not Disturb status 0: Normal. 1: Do not receive messages. 2: Do not notify when messages are received. 消息免打扰设置 status 0:正常;1:不接受消息;2:接受在线消息不接受离线消息;
setOneConversationPrivateChat({required String conversationID, required bool isPrivate, String? operationID}) Future
burn after reading 阅后即焚
simpleSort(List<ConversationInfo> list) List<ConversationInfo>
Custom sort for conversation list 会话列表自定义排序规则。
toString() String
A string representation of this object.
inherited

Operators

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