Rong Chat Room Client
Types
Functions
Link copied to clipboard
public static void addChatRoomAdvanceActionListener(RongChatRoomClient.ChatRoomAdvancedActionListener listener)
Link copied to clipboard
public static void addChatRoomNotifyEventListener(RongChatRoomClient.ChatRoomNotifyEventListener listener)
Adds a chatroom event notification listener.
Link copied to clipboard
Add a listener for chatroom KV status changes
Link copied to clipboard
public abstract void bindChatRoomWithRTCRoom(String chatRoomId, String RTCRoomId, OperationCallback callback)
Binds a chatRoom and RTCRoom.
Link copied to clipboard
Retrieves the default configuration for chatrooms.
Link copied to clipboard
public abstract void deleteChatRoomEntries(String roomId, List<String> chatRoomEntryList, boolean force, SetChatRoomKVCallback callback)
Batch delete chatroom custom attributes
Link copied to clipboard
public abstract void forceRemoveChatRoomEntry(String chatRoomId, String key, boolean sendNotification, String notificationExtra, OperationCallback callback)
Forcefully deletes custom attributes of a chatroom.
Link copied to clipboard
public abstract void forceSetChatRoomEntry(String chatRoomId, String key, String value, boolean sendNotification, boolean autoDelete, String notificationExtra, OperationCallback callback)
Forces the setting of custom attributes for a chatroom.
Link copied to clipboard
public abstract void getAllChatRoomEntries(String chatRoomId, ResultCallback<Map<String, String>> callback)
Retrieves all attributes of a chatroom.
Link copied to clipboard
public abstract void getChatRoomEntry(String chatRoomId, String key, ResultCallback<Map<String, String>> callback)
Retrieve a single chatroom attribute.
Link copied to clipboard
public abstract void getChatroomHistoryMessages(String targetId, long recordTime, int count, TimestampOrder order, IChatRoomHistoryMessageCallback callback)
Retrieve chatroom historical messages.
Link copied to clipboard
public abstract void getChatRoomInfo(String chatRoomId, int defMemberCount, ChatRoomMemberOrder order, ResultCallback<ChatRoomInfo> callback)
Retrieves chatroom information (including partial member information and the total number of members in the chatroom).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Deprecated()
Joins a chatroom.
@Deprecated()
Join a chatroom.
Link copied to clipboard
@Deprecated()
Joins an existing chatroom.
public abstract void joinExistChatRoom(String chatRoomId, int defMessageCount, ResultCallback<JoinChatRoomResponse> callback)
public abstract void joinExistChatRoom(String chatRoomId, int defMessageCount, String extra, ResultCallback<JoinChatRoomResponse> callback)
Join an existing chatroom.
Link copied to clipboard
Exits the chatroom.
Link copied to clipboard
public static void removeChatRoomAdvanceActionListener(RongChatRoomClient.ChatRoomAdvancedActionListener listener)
Link copied to clipboard
public abstract void removeChatRoomEntry(String chatRoomId, String key, boolean sendNotification, String notificationExtra, OperationCallback callback)
Deletes custom attributes of a chatroom.
Link copied to clipboard
public static void removeChatRoomNotifyEventListener(RongChatRoomClient.ChatRoomNotifyEventListener listener)
Remove the chatroom event notification listener.
Link copied to clipboard
Removes the listener for KV status changes in the chatroom
Link copied to clipboard
Sets the chatroom operation listener.
Link copied to clipboard
@Deprecated()
Sets the chatroom operation extension listener.
Link copied to clipboard
public abstract void setChatRoomEntries(String chatRoomId, Map<String, String> chatRoomEntryMap, boolean autoDelete, boolean overWrite, SetChatRoomKVCallback callback)
Batch set custom attributes for a chatroom
Link copied to clipboard
public abstract void setChatRoomEntry(String chatRoomId, String key, String value, boolean sendNotification, boolean autoDelete, String notificationExtra, OperationCallback callback)
Sets custom attributes for a chatroom.
Link copied to clipboard
public static void setChatRoomMemberListener(RongChatRoomClient.ChatRoomMemberActionListener listener)
Set chat room members to join and exit listener.
Link copied to clipboard
Sets whether to check for duplicate messages in the chatroom.
Link copied to clipboard
Sets a listener for chatroom KV status changes