hyphenate_SDK4.0 4.13.0
hyphenate java IM SDK
|
Inherits com.hyphenate.chat.EMBase< T >.
Classes | |
enum | EMChatRoomPermissionType |
Public Member Functions | |
String | getId () |
String | getName () |
String | getDescription () |
String | getOwner () |
List< String > | getAdminList () |
int | getMemberCount () |
int | getMaxUsers () |
List< String > | getMemberList () |
List< String > | getBlacklist () |
Map< String, Long > | getMuteList () |
List< String > | getWhitelist () |
boolean | isAllMemberMuted () |
String | getAnnouncement () |
EMChatRoomPermissionType | getChatRoomPermissionType () |
long | getCreateTimestamp () |
boolean | isInWhitelist () |
long | getMuteExpireTimestamp () |
Chat room types.
List< String > com.hyphenate.chat.EMChatRoom.getAdminList | ( | ) |
Gets the chat room admin list. For how to get chat room, see EMChatRoomManager#fetchChatRoomFromServer(String).
String com.hyphenate.chat.EMChatRoom.getAnnouncement | ( | ) |
Gets the chat room announcement.
To get the chat room announcement, you can call EMChatRoomManager#fetchChatRoomAnnouncement(String)
or its asynchronous method EMChatRoomManager#asyncFetchChatRoomAnnouncement(String, EMValueCallBack).
List< String > com.hyphenate.chat.EMChatRoom.getBlacklist | ( | ) |
Returns the chat room blocklist. To get the blocklist, you can call EMChatRoomManager#fetchChatRoomBlackList(String, int, int). You can call this method as the chat room owner or admin or call its asynchronous method. EMChatRoomManager#asyncFetchChatRoomBlackList(String, int, int, EMValueCallBack).
EMChatRoomPermissionType com.hyphenate.chat.EMChatRoom.getChatRoomPermissionType | ( | ) |
Gets the current user's role in the chat room.
long com.hyphenate.chat.EMChatRoom.getCreateTimestamp | ( | ) |
Gets the timestamp when the chat room was created. This property is available once join the chat room.
String com.hyphenate.chat.EMChatRoom.getDescription | ( | ) |
Gets the chat room description.
String com.hyphenate.chat.EMChatRoom.getId | ( | ) |
Gets the chat room ID.
int com.hyphenate.chat.EMChatRoom.getMaxUsers | ( | ) |
Gets the maximum number of members in the chat room which is determined during chat room creation. This method can return a correct value only after you call EMChatRoomManager::fetchChatRoomFromServer(String) to get chat room details.
int com.hyphenate.chat.EMChatRoom.getMemberCount | ( | ) |
Returns the number of online members.
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.
List< String > com.hyphenate.chat.EMChatRoom.getMemberList | ( | ) |
Returns the member list. You can get the member list in the following ways:
long com.hyphenate.chat.EMChatRoom.getMuteExpireTimestamp | ( | ) |
Gets the timestamp(ms) when Current user will be unmuted.
This property is available once join the chat room. This property will be updated when current use is muted or unmuted.
Map< String, Long > com.hyphenate.chat.EMChatRoom.getMuteList | ( | ) |
Returns the mute list of the chat room. To get the mute list, you can call EMChatRoomManager#fetchChatRoomMuteList(String, int, int). You can call this method as the chat room owner or admin or call its asynchronous method EMChatRoomManager#asyncFetchChatRoomMuteList(String, int, int, EMValueCallBack).
String com.hyphenate.chat.EMChatRoom.getName | ( | ) |
Gets the chat room name.
String com.hyphenate.chat.EMChatRoom.getOwner | ( | ) |
Gets the chat room owner. For how to get chat room details, see EMChatRoomManager#fetchChatRoomFromServer(String).
List< String > com.hyphenate.chat.EMChatRoom.getWhitelist | ( | ) |
Returns the chat room allowlist.
To get the allowlist, you can call EMChatRoomManager#fetchChatRoomWhiteList(String, EMValueCallBack).
You can call this method as the chat room owner or admin.
boolean com.hyphenate.chat.EMChatRoom.isAllMemberMuted | ( | ) |
Checks whether all members are muted,This propery 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.
true
: All members are muted.false
: Not all members are muted. boolean com.hyphenate.chat.EMChatRoom.isInWhitelist | ( | ) |
Current user is in white 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.
true
: In white list.false
: Not in white list.