ChatThreadManager class

~english The chat thread manager class. ~end

~chinese 子区管理类。 ~end

Constructors

ChatThreadManager()

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

addEventHandler(String identifier, ChatThreadEventHandler handler) → void
~english Adds the chat thread event handler. After calling this method, you can handle for chat thread event when they arrive.
clearEventHandlers() → void
~english Clear all chat thread event handlers. ~end
createChatThread({required String name, required String messageId, required String parentId}) Future<ChatThread>
~english Create Chat Thread.
destroyChatThread({required String chatThreadId}) Future<void>
~english Disband Chat Thread.
fetchChatThread({required String chatThreadId}) Future<ChatThread?>
~english Get Chat Thread details from server.
fetchChatThreadMembers({required String chatThreadId, String? cursor, int limit = 20}) Future<ChatCursorResult<String>>
~english Paging to get Chat Thread members.
fetchChatThreadsWithParentId({required String parentId, String? cursor, int limit = 20}) Future<ChatCursorResult<ChatThread>>
~english Get the subareas under a group from the server
fetchJoinedChatThreads({String? cursor, int limit = 20}) Future<ChatCursorResult<ChatThread>>
~english Paging to get the list of Chat Threads that the current user has joined from the server
fetchJoinedChatThreadsWithParentId({required String parentId, String? cursor, int limit = 20}) Future<ChatCursorResult<ChatThread>>
~english Paging to get the list of Chat Threads that the current user has joined the specified group from the server。
fetchLatestMessageWithChatThreads({required List<String> chatThreadIds}) Future<Map<String, ChatMessage>>
~english Get the latest news of the specified Chat Thread list from the server.
getEventHandler(String identifier) ChatThreadEventHandler?
~english Get the chat thread event handler.
joinChatThread({required String chatThreadId}) Future<ChatThread>
~english Join Chat Thread.
leaveChatThread({required String chatThreadId}) Future<void>
~english Leave Chat Thread.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventHandler(String identifier) → void
~english Remove the chat thread event handler.
removeMemberFromChatThread({required String memberId, required String chatThreadId}) Future<void>
~english Remove member from Chat Thread.
toString() String
A string representation of this object.
inherited
updateChatThreadName({required String chatThreadId, required String newName}) Future<void>
~english Change Chat Thread name.

Operators

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