EMChatThreadManager class Null safety
The chat thread manager class.
Constructors
Properties
- 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
-
addChatThreadManagerListener(
EMChatThreadManagerListener listener) → void - Adds the chat thread manager listener. After calling this method, you can listen for new chat threads when they arrive.
-
clearAllChatThreadManagerListeners(
) → void - Removes all chat thread listeners.
-
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.
-
fetchChatThreadMember(
{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.
-
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 non-existent method or property is accessed.
inherited
-
removeChatThreadManagerListener(
EMChatThreadManagerListener listener) → void - Removes the chat thread listener.
-
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