V2TIMConversationManager class Manager
会话接口,包含了会话的获取,删除和更新的逻辑
setConversationListener 设置会话监听器
getConversationList 获取会话列表
deleteConversation 获取指定会话
setConversationDraft 删除会话
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addConversationListener(
{required V2TimConversationListener listener}) → Future< void> -
addConversationsToGroup(
{required String groupName, required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversationOperationResult> > - 添加会话到一个会话分组 4.0.8及以后版本支持,web不支持
-
cleanConversationUnreadMessageCount(
{required String conversationID, required int cleanTimestamp, required int cleanSequence}) → Future< V2TimCallback> -
createConversationGroup(
{required String groupName, required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversationOperationResult> > - 创建好友分组 4.0.8及以后版本支持,web不支持 会话分组最大支持 20 个,不再使用的分组请及时删除。
-
deleteConversation(
{required String conversationID}) → Future< V2TimCallback> - 删除会话
-
deleteConversationGroup(
{required String groupName}) → Future< V2TimCallback> - 删除会话分组 4.0.8及以后版本支持,web不支持
-
deleteConversationList(
{required List< String> conversationIDList, required bool clearMessage}) → Future<V2TimValueCallback< List< >V2TimConversationOperationResult> > -
deleteConversationsFromGroup(
{required String groupName, required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversationOperationResult> > - 从一个会话分组中删除会话 4.0.8及以后版本支持,web不支持
-
getConversation(
{required String conversationID}) → Future< V2TimValueCallback< V2TimConversation> > - 获取指定会话
-
getConversationGroupList(
) → Future< V2TimValueCallback< List< >String> > - 获取会话分组列表 4.0.8及以后版本支持,web不支持
-
getConversationList(
{required String nextSeq, required int count}) → Future< V2TimValueCallback< V2TimConversationResult> > - 获取会话列表
-
getConversationListByConversaionIds(
{required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversation> > - 通过会话ID获取指定会话列表
-
getConversationListByFilter(
{required V2TimConversationFilter filter, required int nextSeq, required int count}) → Future< V2TimValueCallback< V2TimConversationResult> > - 高级获取会话接口
-
getConversationListWithoutFormat(
{required String nextSeq, required int count}) → Future< LinkedHashMap> - 获取会话不格式化
-
getTotalUnreadMessageCount(
) → Future< V2TimValueCallback< int> > - 获取会话未读总数
-
getUnreadMessageCountByFilter(
{required V2TimConversationFilter filter}) → Future< V2TimValueCallback< int> > -
markConversation(
{required int markType, required bool enableMark, required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversationOperationResult> > - 标记会话 4.0.8及以后版本支持,web不支持,且应用为旗舰版 会话分组最大支持 20 个,不再使用的分组请及时删除。 如果已有标记不能满足您的需求,您可以自定义扩展标记,扩展标记需要满足以下两个条件: 1、扩展标记值不能和 V2TIMConversation 已有的标记值冲突 扩展标记值必须是 0x1L << n 的位移值(32 <= n < 64,即 n 必须大于等于 32 并且小于 64),比如自定义 0x1L << 32 标记值表示 "iPhone 在线" 扩展标记值不能设置为 0x1 << 32,要设置为 0x1L << 32,明确告诉编译器是 64 位的整型常量 flutter中使用markType可参考 V2TimConversationMarkType
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pinConversation(
{required String conversationID, required bool isPinned}) → Future< V2TimCallback> - 会话置顶
-
removeConversationListener(
{V2TimConversationListener? listener}) → Future< void> -
renameConversationGroup(
{required String oldName, required String newName}) → Future< V2TimCallback> - 重命名会话分组 4.0.8及以后版本支持,web不支持
-
setConversationCustomData(
{required String customData, required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversationOperationResult> > - 创建好友分组 4.0.8及以后版本支持,web不支持 会话分组最大支持 20 个,不再使用的分组请及时删除。
-
setConversationDraft(
{required String conversationID, String? draftText = ""}) → Future< V2TimCallback> - 设置会话草稿
-
setConversationListener(
{required V2TimConversationListener listener}) → Future< void> -
subscribeUnreadMessageCountByFilter(
{required V2TimConversationFilter filter}) → Future< V2TimCallback> -
toString(
) → String -
A string representation of this object.
inherited
-
unsubscribeUnreadMessageCountByFilter(
{required V2TimConversationFilter filter}) → Future< V2TimCallback>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited