EMChatThreadManager class
子区管理类。
Constructors
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 - 添加 Thread 事件监听。
-
clearEventHandlers(
) → void - 清除所有 Thread 监听。
-
createChatThread(
{required String name, required String messageId, required String parentId}) → Future< EMChatThread> - 创建子区。
-
destroyChatThread(
{required String chatThreadId}) → Future< void> - 解散子区。
-
fetchChatThread(
{required String chatThreadId}) → Future< EMChatThread?> - 从服务器获取子区详情。
-
fetchChatThreadMembers(
{required String chatThreadId, String? cursor, int limit = 20}) → Future< EMCursorResult< String> > - 分页获取子区成员。
-
fetchChatThreadsWithParentId(
{required String parentId, String? cursor, int limit = 20}) → Future< EMCursorResult< EMChatThread> > - 分页从服务器端获取指定群组的子区列表。
-
fetchJoinedChatThreads(
{String? cursor, int limit = 20}) → Future< EMCursorResult< EMChatThread> > - 分页从服务器获取当前用户加入的子区列表。
-
fetchJoinedChatThreadsWithParentId(
{required String parentId, String? cursor, int limit = 20}) → Future< EMCursorResult< EMChatThread> > - 分页从服务器获取当前用户加入指定群组的子区列表。
-
fetchLatestMessageWithChatThreads(
{required List< String> chatThreadIds}) → Future<Map< String, EMMessage> > - 从服务器批量获取指定子区中的最新一条消息。
-
getEventHandler(
String identifier) → EMChatThreadEventHandler? - 获取指定 ID 的事件监听。
-
joinChatThread(
{required String chatThreadId}) → Future< EMChatThread> - 加入子区。
-
leaveChatThread(
{required String chatThreadId}) → Future< void> - 退出子区。
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventHandler(
String identifier) → void - 移除 Thread 事件。
-
removeMemberFromChatThread(
{required String memberId, required String chatThreadId}) → Future< void> - 移除子区成员。
-
toString(
) → String -
A string representation of this object.
inherited
-
updateChatThreadName(
{required String chatThreadId, required String newName}) → Future< void> - 修改子区名称。
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited