EMChatRoom class
~english The chat room instance class.
Note
To get the correct value, ensure that you call EMChatRoomManager.fetchChatRoomInfoFromServer
before calling this method.
~end
~chinese 聊天室信息类,包含内存中的聊天室信息。
Note
如需最新数据,需从服务器获取:EMChatRoomManager.fetchChatRoomInfoFromServer
。
~end
Constructors
-
EMChatRoom.new({required String roomId, String? name, String? description, String? owner, String? announcement, int? memberCount, int? maxUsers, List<
String> ? adminList, List<String> ? memberList, List<String> ? blockList, List<String> ? muteList, bool? isAllMemberMuted, EMChatRoomPermissionType permissionType = EMChatRoomPermissionType.None, bool isInWhitelist = false, int createTimestamp = 0, int muteExpireTimestamp = 0}) -
EMChatRoom.fromJson(Map<
String, dynamic> map) -
factory
Properties
-
adminList
→ List<
String> ? -
~english
Gets the chat room admin list.
final
- announcement → String?
-
~english
Gets the chat room announcement in the chat room from the memory.
final
-
blockList
→ List<
String> ? -
~english
Gets the chat room block list.
final
- createTimestamp → int
-
~english
Gets the timestamp(ms) when the chat room was created.
This property is available once join the chat room.
~end
final
- description → String?
-
~english
Gets the chat room description from the memory.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAllMemberMuted → bool?
-
~english
Checks whether all members are muted,This property is available once join the chat room.
After joining the chat room, when you receive a callback for muting or unmuting all members, this property will be updated.
~end
final
- isInWhitelist → bool
-
~english
Current user is in allow list or not.
This property is available once join the chat room.
This property will be updated when current user is added or removed from the white list.
final
- maxUsers → int?
-
~english
Gets the maximum number of members in the chat room from the memory, which is set/specified when the chat room is created.
final
- memberCount → int?
-
~english
This includes the chat room owner, administrators, and regular members.
You can get this information after joining the chat room.
This property is updated when members join or leave the chat room.
~end
final
-
memberList
→ List<
String> ? -
~english
Gets the member list.
final
- muteExpireTimestamp → int
-
~english
Gets the timestamp(ms) when Current user will be unmuted.
final
-
muteList
→ List<
String> ? -
~english
Gets the mute list of the chat room.
final
- name → String?
-
~english
Gets the chat room name from the memory.
final
- owner → String?
-
~english
Gets the chat room owner ID. If this method returns an empty string, the SDK fails to get chat room details.
final
- permissionType → EMChatRoomPermissionType
-
~english
Gets the current user's role in the chat room. The role types: EMChatRoomPermissionType.
final
- roomId → String
-
~english
Gets the chat room ID.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited