EMChatThreadManager class

The chat thread manager class.

Available Extensions

Constructors

EMChatThreadManager()

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, EMChatThreadEventHandler 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<EMChatThread>
Create Chat Thread.
destroyChatThread({required String chatThreadId}) Future<void>
Disband Chat Thread.
fetchChatThread({required String chatThreadId}) Future<EMChatThread?>
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<EMCursorResult<EMChatThread>>
Get the subareas under a group from the server
fetchJoinedChatThreads({String? cursor, int limit = 20}) Future<EMCursorResult<EMChatThread>>
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<EMCursorResult<EMChatThread>>
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, EMMessage>>
Get the latest news of the specified Chat Thread list from the server.
getEventHandler(String identifier) EMChatThreadEventHandler?
Get the chat thread event handler.
joinChatThread({required String chatThreadId}) Future<EMChatThread>
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