ChatRoomManagerDefault class

Inheritance

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

addAttributes(String roomId, {required Map<String, String> attributes, bool deleteWhenLeft = false, bool overwrite = false}) Future<Map<String, int>?>
~english Sets custom chat room attributes.
inherited
addChatRoomAdmin(String roomId, String admin) Future<void>
~english Adds a chat room admin.
inherited
addEventHandler(String identifier, EMChatRoomEventHandler handler) → void
~english Adds the room event handler. After calling this method, you can handle for new room event when they arrive.
inherited
addMembersToChatRoomAllowList(String roomId, List<String> members) Future<void>
~english Adds members to the allowlist.
inherited
blockChatRoomMembers(String roomId, List<String> members) Future<void>
~english Adds the specified members to the block list of the chat room.
inherited
changeChatRoomDescription(String roomId, String description) Future<void>
~english Modifies the chat room description.
inherited
changeChatRoomName(String roomId, String name) Future<void>
~english Changes the chat room name.
inherited
changeOwner(String roomId, String newOwner) Future<void>
~english Transfers the chat room ownership.
inherited
clearEventHandlers() → void
~english Clear all room event handlers. ~end
inherited
createChatRoom(String name, {String? desc, String? welcomeMsg, int maxUserCount = 300, List<String>? members}) Future<EMChatRoom>
~english Creates a chat room.
inherited
destroyChatRoom(String roomId) Future<void>
~english Destroys a chat room.
inherited
fetchChatRoomAllowListFromServer(String roomId) Future<List<String>>
~english Gets the allow list from the server.
inherited
fetchChatRoomAnnouncement(String roomId) Future<String?>
~english Gets the chat room announcement from the server.
inherited
fetchChatRoomAttributes({required String roomId, List<String>? keys}) Future<Map<String, String>?>
~english Gets the list of custom chat room attributes based on the attribute key list.
inherited
fetchChatRoomBlockList(String roomId, {int pageNum = 1, int pageSize = 200}) Future<List<String>>
~english Gets the chat room block list with pagination.
inherited
fetchChatRoomInfoFromServer(String roomId, {bool fetchMembers = false}) Future<EMChatRoom>
~english Gets the details of the chat room from the server. By default, the details do not include the chat room member list.
inherited
fetchChatRoomMembers(String roomId, {String? cursor, int pageSize = 200}) Future<EMCursorResult<String>>
~english Gets the chat room member list.
inherited
fetchChatRoomMuteList(String roomId, {int pageNum = 1, int pageSize = 200}) Future<List<String>>
~english Gets the list of members who are muted in the chat room from the server.
inherited
fetchPublicChatRoomsFromServer({int pageNum = 1, int pageSize = 200}) Future<EMPageResult<EMChatRoom>>
~english Gets chat room data from the server with pagination.
inherited
getChatRoomWithId(String roomId) Future<EMChatRoom?>
~english Gets the chat room in the cache.
inherited
getEventHandler(String identifier) EMChatRoomEventHandler?
~english Get the room event handler.
inherited
initHandler() → void
inherited
isMemberInChatRoomAllowList(String roomId) Future<bool>
~english Checks whether the member is on the allow list.
inherited
isMemberInChatRoomMuteList(String roomId) Future<bool>
inherited
joinChatRoom(String roomId, {bool leaveOther = true, String? ext}) Future<void>
~english Joins the chat room.
inherited
leaveChatRoom(String roomId) Future<void>
~english Leaves the chat room.
inherited
muteAllChatRoomMembers(String roomId) Future<void>
~english Mutes all members.
inherited
muteChatRoomMembers(String roomId, List<String> muteMembers, {int duration = -1}) Future<void>
~english Mutes the specified members in a chat room.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttributes(String roomId, {required List<String> keys, bool force = false}) Future<Map<String, int>?>
~english Removes custom chat room attributes.
inherited
removeChatRoomAdmin(String roomId, String admin) Future<void>
~english Removes privileges of a chat room admin.
inherited
removeChatRoomMembers(String roomId, List<String> members) Future<void>
~english Removes the specified members from a chat room.
inherited
removeEventHandler(String identifier) → void
~english Remove the room event handler.
inherited
removeMembersFromChatRoomAllowList(String roomId, List<String> members) Future<void>
~english Removes members from the allow list.
inherited
toString() String
A string representation of this object.
inherited
unBlockChatRoomMembers(String roomId, List<String> members) Future<void>
~english Removes the specified members from the block list of the chat room.
inherited
unMuteAllChatRoomMembers(String roomId) Future<void>
~english Unmutes all members.
inherited
unMuteChatRoomMembers(String roomId, List<String> unMuteMembers) Future<void>
~english Unmutes the specified members in a chat room.
inherited
updateChatRoomAnnouncement(String roomId, String announcement) Future<void>
~english Updates the chat room announcement.
inherited

Operators

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