Rong IMClient
Core class for the IM client. All IM-related methods and listeners are invoked and configured here. Can only be called in the main process.
Types
Link copied to clipboard
Indicates whether the user is in the blocklist.
Link copied to clipboard
Chatroom Operation Listener
Link copied to clipboard
Callback class for server connection.
Link copied to clipboard
*Error Codes for Connection Establishment**
Link copied to clipboard
Connection state listener, which retrieves connection-related status.
Link copied to clipboard
Conversation Status (Pin and Do Not Disturb) Multi-Device Synchronization Monitoring
Link copied to clipboard
Callback for creating a discussion group.
Link copied to clipboard
Database Open Enumeration
Link copied to clipboard
Link copied to clipboard
!
Link copied to clipboard
Discussion group invitation status.
Link copied to clipboard
*Callback for file download.
Link copied to clipboard
Listens for the establishment status of encrypted session signaling.
Link copied to clipboard
Get blocklist callback.
Link copied to clipboard
Callback for retrieving the Do Not Disturb time settings for message notifications.
Link copied to clipboard
Listens for changes in chatroom KV status
Link copied to clipboard
Link copied to clipboard
Message Recall Listener
Link copied to clipboard
Listener for Burn After Reading Message Reception
Link copied to clipboard
Listener for receiving messages.
Link copied to clipboard
Listener for receiving messages.
Link copied to clipboard
Operation execution callback.
Link copied to clipboard
Remote Notification Language Type
Link copied to clipboard
*Log Output Monitoring**
Link copied to clipboard
Message receipt listener.
Link copied to clipboard
Real-time location sharing listener.
Link copied to clipboard
A generic class for handling callback functionality in APIs.
Link copied to clipboard
Search type enumeration.
Link copied to clipboard
Callback for sending an image message.
Link copied to clipboard
Callback for sending image messages.
Link copied to clipboard
Callback for sending multimedia messages.
Link copied to clipboard
Callback for sending messages.
Link copied to clipboard
Link copied to clipboard
Listener interface for synchronizing unread message status.
Link copied to clipboard
Link copied to clipboard
Typing status listener that triggers a callback when the typing status changes.
Link copied to clipboard
Monitors the status of image upload.
Link copied to clipboard
Callback for uploading media files.
Functions
Link copied to clipboard
public abstract void addMemberToDiscussion(String discussionId, List<String> userIdList, RongIMClient.OperationCallback callback)
Adds users to a discussion group.
Link copied to clipboard
Adds a listener for the message received event.
Link copied to clipboard
public abstract void addRealTimeLocationListener(ConversationType conversationType, String targetId, RongIMClient.RealTimeLocationListener listener)
Adds a location sharing listener.
Link copied to clipboard
Add a user to the blocklist.
Link copied to clipboard
Notifies the SDK that the application has returned to the foreground.
Link copied to clipboard
public abstract void batchInsertMessage(List<Message> messages, RongIMClient.ResultCallback<Boolean> callback)
Batch inserts received messages (these messages are only inserted into the local database and are not actually sent to the server or the other party).
Link copied to clipboard
public abstract void beginDestructMessage(Message message, RongIMClient.DestructCountDownTimerListener pListener)
Starts burning the message.
Link copied to clipboard
public abstract void bindChatRoomWithRTCRoom(String chatRoomId, String RTCRoomId, RongIMClient.OperationCallback callback)
Bind chatRoom and RTCRoom.
Link copied to clipboard
public abstract void cancelDownloadMediaMessage(Message message, RongIMClient.OperationCallback callback)
Cancels the download of a multimedia message.
Link copied to clipboard
Cancel the wakelock heartbeat.
Link copied to clipboard
public abstract void cancelSendMediaMessage(Message message, RongIMClient.OperationCallback callback)
Cancels sending a multimedia file.
Link copied to clipboard
public abstract void cleanHistoryMessages(ConversationType conversationType, String targetId, long recordTime, boolean cleanRemote, RongIMClient.OperationCallback callback)
Deletes messages before the specified timestamp, with the option to delete messages on the server as well.
Link copied to clipboard
public abstract void cleanRemoteHistoryMessages(ConversationType conversationType, String targetId, long recordTime, RongIMClient.OperationCallback callback)
Clears historical messages stored on the server.
Link copied to clipboard
public abstract void clearConversations(RongIMClient.ResultCallback callback, Array<ConversationType> conversationTypes)
Clears all conversations and their messages for the specified conversation types.
Link copied to clipboard
public abstract void clearMessages(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Boolean> callback)
Deletes all messages in a specific conversation.
Link copied to clipboard
public abstract void clearMessagesUnreadStatus(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Boolean> callback)
public abstract void clearMessagesUnreadStatus(ConversationType conversationType, String targetId, long timestamp, RongIMClient.OperationCallback callback)
Clears the unread message count for a specific conversation.
Link copied to clipboard
public abstract void clearTextMessageDraft(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Boolean> callback)
Deletes the draft information in the specified conversation.
Link copied to clipboard
public static RongIMClient connect(String token, int timeLimit, RongIMClient.ConnectCallback connectCallback)
Connects to the RCserver.
Link copied to clipboard
public abstract void createDiscussion(String name, List<String> userIdList, RongIMClient.CreateDiscussionCallback callback)
Creates a discussion group.
Link copied to clipboard
public abstract void deleteMessages(Array<int> messageIds, RongIMClient.ResultCallback<Boolean> callback)
Deletes messages.
public abstract void deleteMessages(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Boolean> callback)
Deletes all messages in a specific conversation.
Link copied to clipboard
public abstract void deleteRemoteMessages(ConversationType conversationType, String targetId, Array<Message> messages, RongIMClient.OperationCallback callback)
Batch deletes specified remote messages in a conversation (also deletes corresponding local messages).
Link copied to clipboard
Disconnects from the RCserver while still receiving remote notifications.
Disconnects from the RCserver and determines whether to continue receiving remote notifications based on the parameter.
Link copied to clipboard
public abstract void downloadMedia(ConversationType conversationType, String targetId, RongIMClient.MediaType mediaType, String imageUrl, RongIMClient.DownloadMediaCallback callback)
Downloads a multimedia file.
Link copied to clipboard
public abstract void downloadMediaFile(String fileUniqueId, String fileUrl, String fileName, String path, IRongCallback.IDownloadMediaFileCallback callback)
Download a file.
Link copied to clipboard
public abstract void downloadMediaMessage(Message message, IRongCallback.IDownloadMediaMessageCallback callback)
Download multimedia files.
Link copied to clipboard
public abstract void evaluateCustomService(String kefuId, boolean isRobotResolved, String knowledgeId)
Evaluates the customer service bot for separate evaluation of human and bot interactions.
public abstract void evaluateCustomService(String kefuId, int source, String suggest, String dialogId)
Evaluates the human customer service agent, used for separate evaluation of human and bot agents.
public abstract void evaluateCustomService(String kefuId, int source, CSEvaSolveStatus solveStatus, String suggest, String dialogId)
Evaluation for chatbot customer service, used for unified evaluation of both human and chatbot interactions.
public abstract void evaluateCustomService(String kefuId, int source, CSEvaSolveStatus resolvestatus, String tagText, String suggest, String dialogId, String extra)
Evaluates the customer service bot, allowing separate evaluations for human and bot interactions.
Link copied to clipboard
public abstract void forceRemoveChatRoomEntry(String chatRoomId, String key, Boolean sendNotification, String notificationExtra, RongIMClient.OperationCallback callback)
Forces the deletion of chatroom custom attributes.
Link copied to clipboard
public abstract void forceSetChatRoomEntry(String chatRoomId, String key, String value, boolean sendNotification, boolean autoDelete, String notificationExtra, RongIMClient.OperationCallback callback)
Forcefully sets custom attributes for a chatroom.
Link copied to clipboard
public abstract void getAllChatRoomEntries(String chatRoomId, RongIMClient.ResultCallback<Map<String, String>> callback)
Retrieves all attributes of a chatroom.
Link copied to clipboard
Retrieves the current user's blocklist.
Link copied to clipboard
public abstract void getBlacklistStatus(String userId, RongIMClient.ResultCallback<RongIMClient.BlacklistStatus> callback)
Checks whether a user is in the blocklist.
Link copied to clipboard
public abstract void getBlockedConversationList(RongIMClient.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)
Retrieve the list of conversations with Do Not Disturb enabled.
Link copied to clipboard
public abstract void getChatRoomEntry(String chatRoomId, String key, RongIMClient.ResultCallback<Map<String, String>> callback)
Retrieves a single attribute of the chatroom.
Link copied to clipboard
public abstract void getChatroomHistoryMessages(String targetId, long recordTime, int count, RongIMClient.TimestampOrder order, IRongCallback.IChatRoomHistoryMessageCallback callback)
Retrieves chatroom historical messages.
Link copied to clipboard
public abstract void getChatRoomInfo(String chatRoomId, int defMemberCount, ChatRoomMemberOrder order, RongIMClient.ResultCallback<ChatRoomInfo> callback)
Retrieves chatroom information (including partial member information and the total number of members in the chatroom).
Link copied to clipboard
public abstract void getConversation(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Conversation> callback)
Retrieves information of a single conversation.
Link copied to clipboard
Retrieves the local conversation list of the current user.
public abstract void getConversationList(RongIMClient.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)
Retrieves the local conversation list of the current user based on the conversation type.
Link copied to clipboard
public abstract void getConversationListByPage(RongIMClient.ResultCallback<List<Conversation>> callback, long timeStamp, int count, Array<ConversationType> conversationTypes)
Paginates to get the conversation list.
Link copied to clipboard
public abstract void getConversationNotificationStatus(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<ConversationNotificationStatus> callback)
Retrieves the message reminder status of a conversation.
Link copied to clipboard
Retrieves the current connection status of the IM service.
Link copied to clipboard
Link copied to clipboard
Retrieves information about the currently connected user.
Link copied to clipboard
Retrieves the time difference between local time and server time.
Link copied to clipboard
public abstract void getDiscussion(String discussionId, RongIMClient.ResultCallback<Discussion> callback)
Retrieve information about a discussion group.
Link copied to clipboard
public abstract void getDownloadInfo(String tag, RongIMClient.ResultCallback<DownloadInfo> callback)
Retrieves media file download information.
Link copied to clipboard
Gets the maximum allowed size for sending GIF images.
Link copied to clipboard
@Deprecated()
Retrieves a list of messages that meet the specified criteria in the conversation.
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, int oldestMessageId, int count, RongIMClient.ResultCallback<List<Message>> callback)
Retrieves the latest message entities of a specified type, before a specified message, and within a specified count in a conversation.
@Deprecated()
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, String objectName, int oldestMessageId, int count, RongIMClient.ResultCallback<List<Message>> callback)
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, String objectName, int baseMessageId, int count, GetMessageDirection direction, RongIMClient.ResultCallback<List<Message>> callback)
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, List<String> objectNames, long timestamp, int count, GetMessageDirection direction, RongIMClient.ResultCallback<List<Message>> callback)
Retrieves a list of messages in the conversation that meet the specified criteria.
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, long sentTime, int before, int after, RongIMClient.ResultCallback<List<Message>> resultCallback)
Searches for messages before and after the specified message in a conversation.
Link copied to clipboard
Obtains an instance of the IMLib interface class.
Link copied to clipboard
public abstract void getLatestMessages(ConversationType conversationType, String targetId, int count, RongIMClient.ResultCallback<List<Message>> callback)
Retrieve the latest messages of a specified conversation.
Link copied to clipboard
Retrieves the message body based on the message ID (unique database index value).
Link copied to clipboard
Retrieve the message entity by its globally unique ID.
Link copied to clipboard
public abstract void getMessageCount(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Integer> callback)
Retrieves the total number of messages in a specified conversation.
Link copied to clipboard
public abstract void getNotificationQuietHours(RongIMClient.GetNotificationQuietHoursCallback callback)
Get the quiet hours for message notifications.
Link copied to clipboard
Retrieves the offline message storage duration (in days).
Link copied to clipboard
@Deprecated()
This interface is only applicable for private cloud SDK calls and is no longer supported in the current version.
Link copied to clipboard
public abstract void getPublicServiceList(RongIMClient.ResultCallback<PublicServiceProfileList> callback)
Retrieves the list of followed official accounts.
Link copied to clipboard
public abstract void getPublicServiceProfile(PublicServiceType publicServiceType, String publicServiceId, RongIMClient.ResultCallback<PublicServiceProfile> callback)
Retrieves information about a public service.
Link copied to clipboard
Retrieves the setting for displaying detailed content of remote push notifications.
Link copied to clipboard
public abstract void getPushLanguage(RongIMClient.ResultCallback<RongIMClient.PushLanguage> callback)
Retrieves the remote push notification language settings.
Link copied to clipboard
Retrieves the setting for receiving remote push notifications.
Link copied to clipboard
public abstract RealTimeLocationErrorCode getRealTimeLocation(ConversationType conversationType, String targetId)
Retrieves an instance of RealTimeLocation.
Link copied to clipboard
public abstract RealTimeLocationStatus getRealTimeLocationCurrentState(ConversationType conversationType, String targetId)
Retrieves the status of location sharing.
Link copied to clipboard
public abstract List<String> getRealTimeLocationParticipants(ConversationType conversationType, String targetId)
Retrieves all members participating in location sharing.
Link copied to clipboard
public abstract void getRemoteHistoryMessages(ConversationType conversationType, String targetId, RemoteHistoryMsgOption remoteHistoryMsgOption, RongIMClient.ResultCallback<List<Message>> callback)
Fetches remote historical messages for a specified conversation.
public abstract void getRemoteHistoryMessages(ConversationType conversationType, String targetId, long dateTime, int count, RongIMClient.ResultCallback<List<Message>> callback)
Fetches historical messages before a specified time from the server.
Link copied to clipboard
Retrieves the sending time of a message based on its message ID.
Link copied to clipboard
public abstract void getTextMessageDraft(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<String> callback)
Retrieves draft information from the conversation.
Link copied to clipboard
public abstract void getTheFirstUnreadMessage(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Message> callback)
Get the first unread message.
Link copied to clipboard
public abstract void getTopConversationList(RongIMClient.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)
Retrieves the list of pinned conversations based on the conversation type.
Link copied to clipboard
Retrieves the topmost Activity in the foreground.
Link copied to clipboard
Retrieves the total count of unread messages across all conversations.
public abstract void getTotalUnreadCount(RongIMClient.ResultCallback<Integer> callback, Array<Conversation> conversations)
Retrieves the total count of unread messages for all specified conversations.
Link copied to clipboard
public abstract Collection<TypingStatus> getTypingUserListFromConversation(ConversationType conversationType, String targetId)
Retrieves the list of users currently typing in the conversation.
Link copied to clipboard
public abstract void getUnreadCount(Array<ConversationType> conversationTypes, RongIMClient.ResultCallback<Integer> callback)
Get the total unread message count for specified conversation types.
public abstract void getUnreadCount(RongIMClient.ResultCallback<Integer> callback, Array<ConversationType> conversationTypes)
Retrieves the total count of unread messages for the specified conversation types.
public abstract void getUnreadCount(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Integer> callback)
Retrieves the count of unread messages for the specified conversation.
public abstract void getUnreadCount(Array<ConversationType> conversationTypes, boolean containBlocked, RongIMClient.ResultCallback<Integer> callback)
Retrieves the total count of unread messages for specified conversation types.
Link copied to clipboard
public abstract void getUnreadMentionedMessages(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<List<Message>> callback)
Retrieves unread @ messages in the conversation.
Link copied to clipboard
Retrieves the authentication information of the logged-in user.
Link copied to clipboard
Link copied to clipboard
Gets the maximum allowed duration for sending video files.
Link copied to clipboard
Initializes the SDK.
Initializes the RCSDK.
Link copied to clipboard
public abstract void insertIncomingMessage(ConversationType type, String targetId, String senderUserId, ReceivedStatus receivedStatus, MessageContent content, RongIMClient.ResultCallback<Message> resultCallback)
public abstract void insertIncomingMessage(ConversationType type, String targetId, String senderUserId, ReceivedStatus receivedStatus, MessageContent content, long sentTime, RongIMClient.ResultCallback<Message> resultCallback)
Inserts a message into the local conversation with the direction set as received.
Link copied to clipboard
public abstract void insertOutgoingMessage(ConversationType type, String targetId, SentStatus sentStatus, MessageContent content, RongIMClient.ResultCallback<Message> resultCallback)
Inserts a message into the local conversation.
public abstract void insertOutgoingMessage(ConversationType type, String targetId, SentStatus sentStatus, MessageContent content, long sentTime, RongIMClient.ResultCallback<Message> resultCallback)
Inserts a message into the local conversation with the direction set to sent.
Link copied to clipboard
Determines whether the file is currently being downloaded.
Determine whether the file is currently being downloaded.
Link copied to clipboard
public abstract void joinChatRoom(String chatRoomId, int defMessageCount, RongIMClient.OperationCallback callback)
Joins a chatroom.
Link copied to clipboard
public abstract void joinExistChatRoom(String chatRoomId, int defMessageCount, RongIMClient.OperationCallback callback)
Join an existing chatroom.
Link copied to clipboard
public abstract RealTimeLocationErrorCode joinRealTimeLocation(ConversationType conversationType, String targetId)
Join location sharing.
Link copied to clipboard
public abstract void leaveMessageCustomService(String kefuId, Map<String, String> contentMap, RongIMClient.OperationCallback operationCallback)
Customer service message.
Link copied to clipboard
public abstract void pauseDownloadMediaFile(String fileUniqueId, RongIMClient.OperationCallback callback)
Pauses the download of a multimedia file.
Link copied to clipboard
public abstract void pauseDownloadMediaMessage(Message message, RongIMClient.OperationCallback callback)
Pauses the download of a multimedia message.
Link copied to clipboard
Exits the chatroom.
Link copied to clipboard
Exits the current discussion group.
Link copied to clipboard
Exits location sharing.
Link copied to clipboard
public abstract void recallMessage(Message message, String pushContent, RongIMClient.ResultCallback<RecallNotificationMessage> callback)
Recall a message
Link copied to clipboard
@Deprecated()
Register custom message types Call this method after initialization but before connecting to register custom messages.
public static void registerMessageType(List<Class<? extends MessageContent>> messageContentClassList)
Batch register custom message types Call this method to register custom messages after initialization and before connection.
Link copied to clipboard
public abstract void removeChatRoomEntry(String chatRoomId, String key, Boolean sendNotification, String notificationExtra, RongIMClient.OperationCallback callback)
Deletes chatroom custom attributes.
Link copied to clipboard
public abstract void removeConversation(ConversationType conversationType, String targetId, RongIMClient.ResultCallback<Boolean> callback)
Remove a conversation from the conversation list.
Link copied to clipboard
Removes a user from the blocklist.
Link copied to clipboard
public abstract void removeMemberFromDiscussion(String discussionId, String userId, RongIMClient.OperationCallback callback)
Removes a user from a discussion group.
Link copied to clipboard
public abstract void removeMessageExpansion(List<String> keyArray, String messageUId, RongIMClient.OperationCallback callback)
Deletes specific key-value pairs from message extension information.
Link copied to clipboard
Remove the Do Not Disturb period for message notifications.
Link copied to clipboard
Removes the listener for the message received event.
Link copied to clipboard
public abstract void removeRealTimeLocationObserver(ConversationType conversationType, String targetId)
Removes the location sharing listener.
Link copied to clipboard
public abstract void saveTextMessageDraft(ConversationType conversationType, String targetId, String content, RongIMClient.ResultCallback<Boolean> callback)
Saves the draft information of a conversation.
Link copied to clipboard
public abstract void searchConversations(String keyword, Array<ConversationType> conversationTypes, Array<String> objectNames, RongIMClient.ResultCallback<List<SearchConversationResult>> resultCallback)
Searches for conversations based on keywords.
Link copied to clipboard
public abstract void searchMessages(ConversationType conversationType, String targetId, String keyword, int count, long beginTime, RongIMClient.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation based on a keyword.
Link copied to clipboard
public abstract void searchMessagesByUser(ConversationType conversationType, String targetId, String userId, int count, long beginTime, RongIMClient.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation based on the user ID.
Link copied to clipboard
public abstract void searchPublicService(RongIMClient.SearchType searchType, String keywords, RongIMClient.ResultCallback<PublicServiceProfileList> callback)
Search for public services.
Link copied to clipboard
public abstract void searchPublicServiceByType(PublicServiceType publicServiceType, RongIMClient.SearchType searchType, String keywords, RongIMClient.ResultCallback<PublicServiceProfileList> callback)
Search for public services by public service type.
Link copied to clipboard
Send a message to transfer to human customer support
Link copied to clipboard
public abstract void sendDirectionalMediaMessage(Message message, Array<String> userIds, String pushContent, String pushData, IRongCallback.ISendMediaMessageCallback callback)
Sends a targeted multimedia message.
Link copied to clipboard
public abstract void sendDirectionalMessage(ConversationType type, String targetId, MessageContent content, Array<String> userIds, String pushContent, String pushData, IRongCallback.ISendMessageCallback callback)
Sends a targeted message.
Link copied to clipboard
public abstract void sendImageMessage(Message message, String pushContent, String pushData, RongIMClient.SendImageMessageCallback callback)
public abstract void sendImageMessage(ConversationType type, String targetId, MessageContent content, String pushContent, String pushData, RongIMClient.SendImageMessageCallback callback)
Sends an image message.
public abstract void sendImageMessage(Message message, String pushContent, String pushData, RongIMClient.SendImageMessageWithUploadListenerCallback callback)
Send an image message.
Link copied to clipboard
public abstract void sendLocationMessage(Message message, String pushContent, String pushData, IRongCallback.ISendMessageCallback sendMessageCallback)
Sends a location message.
Link copied to clipboard
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, IRongCallback.ISendMediaMessageCallback callback)
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, SendMessageOption option, IRongCallback.ISendMediaMessageCallback callback)
Sends a multimedia message.
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, IRongCallback.ISendMediaMessageCallbackWithUploader callback)
To send multimedia messages, you can use this method to upload multimedia files to your own server.
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, SendMessageOption option, IRongCallback.ISendMediaMessageCallbackWithUploader callback)
Sends a multimedia message, allowing you to upload multimedia files to your own server.
Link copied to clipboard
public abstract void sendMessage(Message message, String pushContent, String pushData, IRongCallback.ISendMessageCallback callback)
public abstract void sendMessage(Message message, String pushContent, String pushData, SendMessageOption option, IRongCallback.ISendMessageCallback callback)
Sends a message.
public abstract void sendMessage(ConversationType type, String targetId, MessageContent content, String pushContent, String pushData, IRongCallback.ISendMessageCallback callback)
Sends a message based on the conversation type.
Link copied to clipboard
public abstract void sendReadReceiptMessage(ConversationType conversationType, String targetId, long timestamp)
Sends a read receipt for messages in a specific conversation For IMLib, you can register a listener using setReadReceiptListener; for IMKit, directly set
rc_read_receipt
to true in rc_config.xml.public abstract void sendReadReceiptMessage(ConversationType conversationType, String targetId, long timestamp, IRongCallback.ISendMessageCallback callback)
Send read receipts for messages in a conversation.
Link copied to clipboard
public abstract void sendReadReceiptRequest(Message message, RongIMClient.OperationCallback callback)
Initiates a read receipt request for a message (only supported for groups and discussion groups).
Link copied to clipboard
public abstract void sendReadReceiptResponse(ConversationType type, String targetId, List<Message> messageList, RongIMClient.OperationCallback callback)
Send Read Receipt (Supported for Groups and Discussion Groups Only)
Link copied to clipboard
public abstract void sendTypingStatus(ConversationType conversationType, String targetId, String typingContentType)
Sends a typing status to the conversation.
Link copied to clipboard
Sets the chatroom operation listener.
Link copied to clipboard
public abstract void setChatRoomEntry(String chatRoomId, String key, String value, boolean sendNotification, boolean autoDelete, String notificationExtra, RongIMClient.OperationCallback callback)
Sets custom attributes for a chatroom.
Link copied to clipboard
Sets a listener for connection status changes.
Link copied to clipboard
public abstract void setConversationNotificationStatus(ConversationType conversationType, String targetId, ConversationNotificationStatus notificationStatus, RongIMClient.ResultCallback<ConversationNotificationStatus> callback)
Sets the message notification status for a conversation.
Link copied to clipboard
public abstract void setConversationStatusListener(RongIMClient.ConversationStatusListener listener)
Sets up multi-device synchronization monitoring for conversation status (pinned and Do Not Disturb)
Link copied to clipboard
public abstract void setConversationToTop(ConversationType conversationType, String id, boolean isTop, RongIMClient.ResultCallback<Boolean> callback)
public abstract void setConversationToTop(ConversationType conversationType, String id, boolean isTop, boolean needCreate, RongIMClient.ResultCallback<Boolean> callback)
Sets the pinned status of a conversation.
Link copied to clipboard
Sets up the manual evaluation listener.
Link copied to clipboard
public abstract void setDiscussionInviteStatus(String discussionId, RongIMClient.DiscussionInviteStatus status, RongIMClient.OperationCallback callback)
Sets the invitation permissions for discussion group members.
Link copied to clipboard
public abstract void setDiscussionName(String discussionId, String name, RongIMClient.OperationCallback callback)
Sets the name of a discussion group.
Link copied to clipboard
Sets up a listener for chatroom KV status changes.
Link copied to clipboard
Sets the listener for intercepted messages containing sensitive words.
Link copied to clipboard
Sets the message extension listener
Link copied to clipboard
public abstract void setMessageExtra(int messageId, String value, RongIMClient.ResultCallback<Boolean> callback)
Sets additional information for a local message.
Link copied to clipboard
public abstract void setMessageReadTime(long messageId, long timestamp, RongIMClient.OperationCallback callback)
Sets the read timestamp for a message.
Link copied to clipboard
public abstract void setMessageReceivedStatus(int messageId, ReceivedStatus receivedStatus, RongIMClient.ResultCallback<Boolean> callback)
Sets the message received status.
Link copied to clipboard
public abstract void setMessageSentStatus(Message message, RongIMClient.ResultCallback<Boolean> callback)
Sets the message sending status.
Link copied to clipboard
public abstract void setNotificationQuietHours(String startTime, int spanMinutes, RongIMClient.OperationCallback callback)
Sets the Do Not Disturb time for message notifications.
Link copied to clipboard
public abstract void setOfflineMessageDuration(int duration, RongIMClient.ResultCallback<Long> callback)
Sets the storage duration of offline messages on the server (in days).
Link copied to clipboard
Sets the message recall listener
Link copied to clipboard
public abstract void setOnReceiveDestructionMessageListener(RongIMClient.OnReceiveDestructionMessageListener listener)
Sets the listener for receiving auto-destroy messages.
Link copied to clipboard
Sets the listener for receiving message events.
Link copied to clipboard
public abstract void setPushContentShowStatus(boolean showStatus, RongIMClient.OperationCallback callback)
Sets whether to display the details of remote push notifications.
Link copied to clipboard
public abstract void setPushLanguage(RongIMClient.PushLanguage language, RongIMClient.OperationCallback callback)
Sets the language for remote push notifications.
Link copied to clipboard
Sets the natural language for push notification content.
Link copied to clipboard
public abstract void setPushReceiveStatus(boolean receiveStatus, RongIMClient.OperationCallback callback)
Sets whether to receive remote push notifications.
Link copied to clipboard
Sets the Log output listener.
Link copied to clipboard
Sets the message receipt listener.
Link copied to clipboard
Specifies whether to kick out the reconnecting device during reconnection.
Link copied to clipboard
Sets the size of the business log file, with a default of 1M.
Link copied to clipboard
Sets the log level for writing business logs to files.
Link copied to clipboard
Sets the navigation server and media server addresses for private deployment.
Link copied to clipboard
Configures the data upload URL (optional).
Link copied to clipboard
public abstract void setSyncConversationReadStatusListener(RongIMClient.SyncConversationReadStatusListener listener)
Sets the listener for multi-device synchronization of conversation read status.
Link copied to clipboard
Sets the typing status listener.
Link copied to clipboard
Sets the callback for uploading RLog logs to the server
Link copied to clipboard
public abstract void startCustomService(String kefuId, ICustomServiceListener listener, CSCustomServiceInfo customServiceInfo)
Starts the customer service.
Link copied to clipboard
public abstract RealTimeLocationErrorCode startRealTimeLocation(ConversationType conversationType, String targetId)
Initiates location sharing.
Link copied to clipboard
Exits the customer support service.
Link copied to clipboard
Cancel the burn-after-reading message.
Link copied to clipboard
public abstract void subscribePublicService(PublicServiceType publicServiceType, String publicServiceId, RongIMClient.OperationCallback callback)
Subscribe to an Official Account.
Link copied to clipboard
public abstract void supportResumeBrokenTransfer(String url, RongIMClient.ResultCallback<Boolean> callback)
Determines whether resumable upload is supported.
Link copied to clipboard
Switch appKey.
Link copied to clipboard
Switch to manual customer service mode.
Link copied to clipboard
public abstract void syncConversationReadStatus(ConversationType type, String targetId, long timestamp, RongIMClient.OperationCallback callback)
Synchronizes the read status of a conversation.
Link copied to clipboard
Link copied to clipboard
public abstract void unsubscribePublicService(PublicServiceType publicServiceType, String publicServiceId, RongIMClient.OperationCallback callback)
Unsubscribes from an official account.
Link copied to clipboard
public abstract void updateConversationInfo(ConversationType conversationType, String targetId, String title, String portrait, RongIMClient.ResultCallback callback)
Updates conversation information.
Link copied to clipboard
public abstract void updateMessageExpansion(Map<String, String> expansion, String messageUId, RongIMClient.OperationCallback callback)
Update message extension information Each message can carry a maximum of 300 key-value pairs of extension information.
Link copied to clipboard
public abstract void updateRealTimeLocationStatus(ConversationType conversationType, String targetId, double latitude, double longitude, RealTimeLocationType realTimeLocationType)
Updates location sharing information.
Link copied to clipboard
Upload RLog logs Invoke this method after successfully calling connect