ChatThreadManager class

The chat thread manager class.

Constructors

ChatThreadManager()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

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