V2TIMConversationManager class Null safety Manager
Conversation APIs, including the APIs for getting, deleting, and updating conversations
setConversationListener set session listener
getConversationList Get the conversation list
deleteConversation Get a specified conversation
setConversationDraft Delete a conversation
Properties
-
conversationListenerList
↔ Map<
String, V2TimConversationListener> -
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
addConversationListener(
{required V2TimConversationListener listener}) → Future< void> -
deleteConversation(
{required String conversationID}) → Future< V2TimCallback> - Delete a conversation [...]
-
getConversation(
{required String conversationID}) → Future< V2TimValueCallback< V2TimConversation> > - Get a specified conversation [...]
-
getConversationList(
{required String nextSeq, required int count}) → Future< V2TimValueCallback< V2TimConversationResult> > - Get the conversation list [...]
-
getConversationListByConversaionIds(
{required List< String> conversationIDList}) → Future<V2TimValueCallback< List< >V2TimConversation> > - Get a specified conversation list by conversation ID
-
getConversationListWithoutFormat(
{required String nextSeq, required int count}) → Future< LinkedHashMap> - Get session not formatted
-
getTotalUnreadMessageCount(
) → Future< V2TimValueCallback< int> > - Get the total message unread count of a conversation
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
pinConversation(
{required String conversationID, required bool isPinned}) → Future< V2TimCallback> - Pin a conversation to the top
-
removeConversationListener(
{V2TimConversationListener? listener}) → Future< void> -
setConversationDraft(
{required String conversationID, String? draftText}) → Future< V2TimCallback> - Set a conversation draft [...]
-
setConversationListener(
{required V2TimConversationListener listener}) → Future< void> -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited