hyphenate_SDK4.0 4.8.2
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 () |
List< String > | getBlacklist () |
Map< String, Long > | getMuteList () |
List< String > | getWhiteList () |
List< String > | getWhitelist () |
boolean | isAllMemberMuted () |
String | getAnnouncement () |
EMChatRoomPermissionType | getChatRoomPermissionType () |
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)
.
EMChatRoom#getBlacklist()
instead. 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.
EMChatRoomPermissionType
. 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.
List< String > com.hyphenate.chat.EMChatRoom.getMemberList | ( | ) |
Returns the member list. You can get the member list in the following ways:
EMChatRoomManager#fetchChatRoomFromServer(String, boolean)
to get them. If true is passed to the second parameter, you can get up to 200 members.EMChatRoomManager#fetchChatRoomMembers(String, String, int)
to get the member list with pagination or use its asynchronous method EMChatRoomManager#asyncFetchChatRoomMembers(String, String, int, EMValueCallBack)
.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.
EMChatRoom#getWhitelist()
instead. 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 method has use limitations and should be used with caution. Pay attention to the following when using this method:
true
: All members are muted.false
: Not all members are muted.