Chat SDK for Android v1.2.1
agora java chat SDK
|
Inherits io.agora.chat.EMBase< T >.
Classes | |
enum | ChatRoomPermissionType |
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 () |
ChatRoomPermissionType | getChatRoomPermissionType () |
Chat room types.
List< String > io.agora.chat.ChatRoom.getAdminList | ( | ) |
Gets the chat room admin list. For how to get chat room, see ChatRoomManager#fetchChatRoomFromServer(String).
String io.agora.chat.ChatRoom.getAnnouncement | ( | ) |
Gets the chat room announcement. To get the chat room announcement, you can call ChatRoomManager#fetchChatRoomAnnouncement(String) or its asynchronous method ChatRoomManager#asyncFetchChatRoomAnnouncement(String, ValueCallBack).
List< String > io.agora.chat.ChatRoom.getBlackList | ( | ) |
Returns the chat room blocklist. To get the blocklist, you can call ChatRoomManager#fetchChatRoomBlackList(String, int, int). You can call this method as the chat room owner or admin or call its asynchronous method ChatRoomManager#asyncFetchChatRoomBlackList(String, int, int, ValueCallBack).
List< String > io.agora.chat.ChatRoom.getBlacklist | ( | ) |
Returns the chat room blocklist. To get the blocklist, you can call ChatRoomManager#fetchChatRoomBlackList(String, int, int). You can call this method as the chat room owner or admin or call its asynchronous method. ChatRoomManager#asyncFetchChatRoomBlackList(String, int, int, ValueCallBack).
ChatRoomPermissionType io.agora.chat.ChatRoom.getChatRoomPermissionType | ( | ) |
Gets the current user's role in the chat room.
String io.agora.chat.ChatRoom.getDescription | ( | ) |
Gets the chat room description.
String io.agora.chat.ChatRoom.getId | ( | ) |
Gets the chat room ID.
int io.agora.chat.ChatRoom.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 ChatRoomManager::fetchChatRoomFromServer(String) to get chat room details.
int io.agora.chat.ChatRoom.getMemberCount | ( | ) |
Returns the number of online members.
List< String > io.agora.chat.ChatRoom.getMemberList | ( | ) |
Returns the member list. You can get the member list in the following ways:
Map< String, Long > io.agora.chat.ChatRoom.getMuteList | ( | ) |
Returns the mute list of the chat room. To get the mute list, you can call ChatRoomManager#fetchChatRoomMuteList(String, int, int). You can call this method as the chat room owner or admin or call its asynchronous method ChatRoomManager#asyncFetchChatRoomMuteList(String, int, int, ValueCallBack).
String io.agora.chat.ChatRoom.getName | ( | ) |
Gets the chat room name.
String io.agora.chat.ChatRoom.getOwner | ( | ) |
Gets the chat room owner. For how to get chat room details, see ChatRoomManager#fetchChatRoomFromServer(String).
List< String > io.agora.chat.ChatRoom.getWhiteList | ( | ) |
Returns the chat room allowlist. To get the allowlist, you can call ChatRoomManager#fetchChatRoomWhiteList(String, ValueCallBack). You can call this method as the chat room owner or admin.
List< String > io.agora.chat.ChatRoom.getWhitelist | ( | ) |
Returns the chat room allowlist.
To get the allowlist, you can call ChatRoomManager#fetchChatRoomWhiteList(String, ValueCallBack). You can call this method as the chat room owner or admin.
boolean io.agora.chat.ChatRoom.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.