V2TIMConversationManager class Manager
会话接口,包含了会话的获取,删除和更新的逻辑
setConversationListener 设置会话监听器
getConversationList 获取会话列表
deleteConversation 获取指定会话
setConversationDraft 删除会话
Properties
-
conversationListenerList
↔ Map<
String, V2TimConversationListener> -
getter/setter pair
- 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> -
deleteConversation(
{required String conversationID}) → Future< V2TimCallback> - 删除会话
-
getConversation(
{required String conversationID}) → Future< V2TimValueCallback< V2TimConversation> > - 获取指定会话
-
getConversationList(
{required String nextSeq, required int count}) → Future< V2TimValueCallback< V2TimConversationResult> > - 获取会话列表
-
getConversationListByConversaionIds(
{required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversation> > - 通过会话ID获取指定会话列表
-
getConversationListWithoutFormat(
{required String nextSeq, required int count}) → Future< LinkedHashMap> - 获取会话不格式化
-
getTotalUnreadMessageCount(
) → Future< V2TimValueCallback< int> > - 获取会话未读总数
-
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> -
setConversationDraft(
{required String conversationID, String? draftText}) → Future< V2TimCallback> - 设置会话草稿
-
setConversationListener(
{required V2TimConversationListener listener}) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited