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