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 () |
Map< String, Long > | getMuteList () |
List< String > | getWhitelist () |
boolean | isAllMemberMuted () |
String | getAnnouncement () |
ChatRoomPermissionType | getChatRoomPermissionType () |
long | getCreateTimestamp () |
boolean | isInWhitelist () |
long | getMuteExpireTimestamp () |
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)
.
ChatRoomPermissionType io.agora.chat.ChatRoom.getChatRoomPermissionType | ( | ) |
Gets the current user's role in the chat room.
ChatRoomPermissionType
. long io.agora.chat.ChatRoom.getCreateTimestamp | ( | ) |
Gets the timestamp when the chat room was created. This property is available once join 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.
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 > io.agora.chat.ChatRoom.getMemberList | ( | ) |
Returns the member list. You can get the member list in the following ways:
ChatRoomManager#fetchChatRoomFromServer(String, boolean)
to get them. If true is passed to the second parameter, you can get up to 200 members.ChatRoomManager#fetchChatRoomMembers(String, String, int)
to get the member list with pagination or use its asynchronous method ChatRoomManager#asyncFetchChatRoomMembers(String, String, int, ValueCallBack)
.long io.agora.chat.ChatRoom.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 > 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.
boolean io.agora.chat.ChatRoom.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 io.agora.chat.ChatRoom.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.