RongCoreClient

public abstract class RongCoreClient

获取会话中未读的 @ 消息。

Since

5.2.5

Constructors

Link copied to clipboard
public void RongCoreClient()

Functions

Link copied to clipboard
public abstract void acceptFriendApplication(String userId, IRongCoreCallback.OperationCallback callback)
Agree to add as a friend
Link copied to clipboard
public abstract void acceptGroupApplication(String groupId, String inviterId, String applicantId, IRongCoreCallback.ResultCallback<IRongCoreEnum.CoreErrorCode> callback)
The group owner or administrator approves the user to join the group.
Link copied to clipboard
public abstract void acceptGroupInvite(String groupId, String inviterId, IRongCoreCallback.OperationCallback callback)
User agrees to join a group
Link copied to clipboard
Adds a listener for connection status changes.
Link copied to clipboard
public abstract void addConversationsToTag(String tagId, List<ConversationIdentifier> conversationIdentifierList, IRongCoreCallback.OperationCallback callback)
Adds a conversation to a tag
Link copied to clipboard
Sets the database upgrade status listener
Link copied to clipboard
public abstract void addFriend(String userId, DirectionType directionType, String extra, IRongCoreCallback.ResultCallback<IRongCoreEnum.CoreErrorCode> callback)
Add Friend
Link copied to clipboard
public abstract void addGroupFollows(String groupId, List<String> userIds, IRongCoreCallback.OperationCallback callback)
Set special attention users for a group
Link copied to clipboard
public abstract void addGroupManagers(String groupId, List<String> userIds, IRongCoreCallback.OperationCallback callback)
Add Group Administrators Note: Only the group owner can add group administrators.
Link copied to clipboard
public static boolean addOnReceiveMessageListener(OnReceiveMessageWrapperListener listener)
Adds a listener for the message received event.
Link copied to clipboard
public abstract void addSubscribeEventListener(OnSubscribeEventListener listener)
Adds a subscription event listener.
Link copied to clipboard
public abstract void addTag(TagInfo tagInfo, IRongCoreCallback.OperationCallback callback)
Create a tag
Link copied to clipboard
public abstract void addToBlacklist(String userId, IRongCoreCallback.OperationCallback callback)
Adds a user to the blocklist.
Link copied to clipboard
public abstract void appOnStart()
Notifies the SDK that the application has returned to the foreground.
Link copied to clipboard
public abstract void batchInsertMessage(List<Message> messages, IRongCoreCallback.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).
public abstract void batchInsertMessage(List<Message> messages, boolean enableCheck, IRongCoreCallback.ResultCallback<Boolean> callback)
Batch inserts received messages (these messages are only inserted into the local database and will not be sent to the server or the other party).
Link copied to clipboard
public abstract void beginDestructMessage(Message message, IRongCoreListener.DestructCountDownTimerListener pListener)
Starts burning the message, only supported in one-to-one chat.
Link copied to clipboard
public abstract void cancelDownloadMediaMessage(Message message, IRongCoreCallback.OperationCallback callback)
Cancels the download of a multimedia message.
Link copied to clipboard
public abstract void cancelSDKHeartBeat()
Cancels the wakelock heartbeat.
Link copied to clipboard
public abstract void cancelSendMediaMessage(Message message, IRongCoreCallback.OperationCallback callback)
Cancels the sending of a multimedia file.
Link copied to clipboard
public abstract void checkFriends(List<String> userIds, DirectionType directionType, IRongCoreCallback.ResultCallback<List<FriendRelationInfo>> callback)
Check friend relationship For details on friend relationship types, refer to
Link copied to clipboard
public abstract void cleanHistoryMessages(ConversationType conversationType, String targetId, long recordTime, boolean cleanRemote, IRongCoreCallback.OperationCallback callback)
Deletes messages before the specified timestamp, with the option to also delete messages on the server.
Link copied to clipboard
public abstract void cleanRemoteHistoryMessages(ConversationType conversationType, String targetId, long recordTime, IRongCoreCallback.OperationCallback callback)
Clears historical messages stored on the server.
Link copied to clipboard
public abstract void clearConversations(IRongCoreCallback.ResultCallback<Boolean> callback, Array<ConversationType> conversationTypes)
Clears all conversations and conversation messages of the specified conversation types from the list.
Link copied to clipboard
public abstract void clearConversationsByTag(String tagId, boolean deleteMessage, IRongCoreCallback.ResultCallback<Boolean> callback)
Deletes all conversations under the specified tag.
Link copied to clipboard
public abstract void clearMessages(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Boolean> callback)
Deletes all messages in a specific conversation.
Link copied to clipboard
public abstract void clearMessagesUnreadStatus(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Boolean> callback)
public abstract void clearMessagesUnreadStatus(ConversationType conversationType, String targetId, long timestamp, IRongCoreCallback.OperationCallback callback)
Clears the unread message count for a specific conversation.
Link copied to clipboard
public abstract void clearMessagesUnreadStatusByTag(String tagId, IRongCoreCallback.ResultCallback<Boolean> callback)
Clears the unread message count for all conversations under the specified tag.
Link copied to clipboard
public abstract void clearTextMessageDraft(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Boolean> callback)
Deletes the draft information in the specified conversation.
Link copied to clipboard
public static RongCoreClient connect(String token, IRongCoreCallback.ConnectCallback connectCallback)
Connects to the RCserver.
public static RongCoreClient connect(String token, int timeLimit, IRongCoreCallback.ConnectCallback connectCallback)
Retrieves an instance of the IMLib interface class.
Link copied to clipboard
public abstract void createGroup(GroupInfo groupInfo, List<String> inviteeUserIds, IRongCoreCallback.CreateGroupCallback callback)
Create Group Note: The following attributes can be set in the group information (GroupInfo): 1.
Link copied to clipboard
public abstract void deleteFriends(List<String> userIds, DirectionType directionType, IRongCoreCallback.OperationCallback callback)
Remove Friends Note: Mutual friend removal: Removes the friend from both parties' friend lists.
Link copied to clipboard
public abstract void deleteMessages(Array<int> messageIds, IRongCoreCallback.ResultCallback<Boolean> callback)
Deletes messages.
public abstract void deleteMessages(ConversationType conversationType, String targetId, IRongCoreCallback.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, IRongCoreCallback.OperationCallback callback)
Batch deletes specified remote messages in a conversation (and deletes the corresponding local messages).
Link copied to clipboard
public abstract void disconnect()
Disconnects from the RCserver while still receiving remote notifications.
public abstract void disconnect(boolean isReceivePush)
Disconnects from the RCserver and determines whether to continue receiving remote push notifications based on the parameter.
Link copied to clipboard
public abstract void dismissGroup(String groupId, IRongCoreCallback.OperationCallback callback)
Dismiss a group Note: Only the group owner can dismiss a group they created.
Link copied to clipboard
public abstract Map doMethod(String clazzName, String methodKey, Map param)
Link copied to clipboard
public abstract void downloadMedia(ConversationType conversationType, String targetId, IRongCoreEnum.MediaType mediaType, String imageUrl, IRongCoreCallback.DownloadMediaCallback callback)
Downloads multimedia files.
Link copied to clipboard
public abstract void downloadMediaFile(String fileUniqueId, String fileUrl, String fileName, String path, IRongCoreCallback.IDownloadMediaFileCallback callback)
Download a file.
Link copied to clipboard
public abstract void downloadMediaMessage(Message message, IRongCoreCallback.IDownloadMediaMessageCallback callback)
Download multimedia files.
Link copied to clipboard
public abstract void enableSingleProcess(boolean enable)
Sets whether to enable single process mode.
Link copied to clipboard
public abstract String getAIAddress()
Get the translation URL
Link copied to clipboard
public abstract void getBlacklist(IRongCoreCallback.GetBlacklistCallback callback)
Retrieves the blocklist of the current user.
Link copied to clipboard
Checks whether a user is in the blocklist.
Link copied to clipboard
public abstract void getBlockedConversationList(IRongCoreCallback.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)
Retrieves the list of conversations with Do Not Disturb enabled.
Link copied to clipboard
public static String getCommitId()
Retrieves the SDK commit pointer
Link copied to clipboard
public abstract void getConversation(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Conversation> callback)
Retrieves information for a single conversation.
Link copied to clipboard
public abstract void getConversationList(IRongCoreCallback.ResultCallback<List<Conversation>> callback)
Retrieves the local conversation list of the current user.
public abstract void getConversationList(IRongCoreCallback.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(IRongCoreCallback.ResultCallback<List<Conversation>> callback, long timeStamp, int count, Array<ConversationType> conversationTypes)
Retrieves the conversation list in a paginated manner.
public abstract void getConversationListByPage(IRongCoreCallback.ResultCallback<List<Conversation>> callback, long timeStamp, int count, boolean topPriority, Array<ConversationType> conversationTypes)
Fetches the conversation list with pagination.
Link copied to clipboard
public abstract void getConversationNotificationStatus(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<ConversationNotificationStatus> callback)
Retrieves the message notification status for a conversation.
Link copied to clipboard
public abstract void getConversations(List<ConversationIdentifier> conversationIdentifiers, IRongCoreCallback.ResultCallback<List<Conversation>> callback)
Method to retrieve a list of conversations.
Link copied to clipboard
public abstract void getConversationsFromTagByPage(String tagId, long ts, int count, IRongCoreCallback.ResultCallback<List<Conversation>> callback)
Paginate and retrieve the conversation list under a specified local tag.
Link copied to clipboard
public abstract void getConversationTopStatus(String targetId, ConversationType conversationType, IRongCoreCallback.ResultCallback<Boolean> callback)
Retrieves the pinned status of a conversation.
Link copied to clipboard
public abstract void getConversationTopStatusInTag(ConversationIdentifier conversationIdentifier, String tagId, IRongCoreCallback.ResultCallback<Boolean> callback)
Retrieves the pinned status of a tag in a specified conversation (not supported for ultra groups)
Link copied to clipboard
Retrieves the current connection status of the IM service.
Link copied to clipboard
public abstract RCIMProxy getCurrentProxy()
Retrieves the current proxy.
Link copied to clipboard
public abstract String getCurrentUserId()
Retrieve the information of the currently connected user.
Link copied to clipboard
public abstract long getDeltaTime()
Gets the time difference between local time and server time.
Link copied to clipboard
public abstract void getDownloadInfo(String tag, IRongCoreCallback.ResultCallback<DownloadInfo> callback)
Retrieves media file download information.
Link copied to clipboard
public abstract void getFriendAddPermission(IRongCoreCallback.ResultCallback<FriendAddPermission> callback)
Get the current user's friend request permission
Link copied to clipboard
public abstract void getFriendApplications(PagingQueryOption option, Array<FriendApplicationType> types, Array<FriendApplicationStatus> status, IRongCoreCallback.PageResultCallback<FriendApplicationInfo> callback)
Paginate through the list of friend requests
Link copied to clipboard
public abstract void getFriends(QueryFriendsDirectionType type, IRongCoreCallback.ResultCallback<List<FriendInfo>> callback)
Get the complete friend list
Link copied to clipboard
public abstract void getFriendsInfo(List<String> userIds, IRongCoreCallback.ResultCallback<List<FriendInfo>> callback)
Search for friend information based on user IDs
Link copied to clipboard
public abstract int getGIFLimitSize()
Gets the maximum allowed size for sending GIF images.
Link copied to clipboard
public abstract void getGroupApplications(PagingQueryOption option, Array<GroupApplicationDirection> directions, Array<GroupApplicationStatus> status, IRongCoreCallback.PageResultCallback<GroupApplicationInfo> callback)
Fetch paginated group request list
Link copied to clipboard
public abstract void getGroupFollows(String groupId, IRongCoreCallback.ResultCallback<List<FollowInfo>> callback)
Query the list of specially followed users in a group
Link copied to clipboard
public abstract void getGroupMembers(String groupId, List<String> userIds, IRongCoreCallback.ResultCallback<List<GroupMemberInfo>> callback)
Retrieves information about specified group members
Link copied to clipboard
public abstract void getGroupMembersByRole(String groupId, GroupMemberRole role, PagingQueryOption option, IRongCoreCallback.PageResultCallback<GroupMemberInfo> callback)
Retrieve the member list of a specified group with pagination.
Link copied to clipboard
public abstract void getGroupsInfo(List<String> groupIds, IRongCoreCallback.ResultCallback<List<GroupInfo>> callback)
Batch Retrieve Group Information Note: Only returns information for existing groups.
Link copied to clipboard
@Deprecated()
public abstract List<Message> getHistoryMessages(ConversationType conversationType, String targetId, int oldestMessageId, int count)
@Deprecated()
public abstract List<Message> getHistoryMessages(ConversationType conversationType, String targetId, String objectName, int oldestMessageId, int count)
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, List<String> objectNames, long timestamp, int count, RongCommonDefine.GetMessageDirection direction, IRongCoreCallback.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, int oldestMessageId, int count, IRongCoreCallback.ResultCallback<List<Message>> callback)
Retrieves the latest message entities of the specified message type, before the specified message, and in the specified quantity from the conversation.
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, String objectName, int oldestMessageId, int count, IRongCoreCallback.ResultCallback<List<Message>> callback)
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, String objectName, int baseMessageId, int count, RongCommonDefine.GetMessageDirection direction, IRongCoreCallback.ResultCallback<List<Message>> callback)
Retrieves a list of messages that meet the specified criteria in the conversation.
public abstract void getHistoryMessages(ConversationType conversationType, String targetId, long sentTime, int before, int after, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for a specified number of messages before and after a given message in a conversation.
Link copied to clipboard
public static RongCoreClient getInstance()
Link copied to clipboard
public abstract void getJoinedGroups(List<String> groupIds, IRongCoreCallback.ResultCallback<List<GroupInfo>> callback)
Batch retrieve the groups I have joined
Link copied to clipboard
public abstract void getJoinedGroupsByRole(GroupMemberRole role, PagingQueryOption option, IRongCoreCallback.PageResultCallback<GroupInfo> callback)
Paginated query for the list of groups a user belongs to
Link copied to clipboard
public abstract void getLatestMessages(ConversationType conversationType, String targetId, int count, IRongCoreCallback.ResultCallback<List<Message>> callback)
Fetches the latest messages from the specified conversation.
Link copied to clipboard
public abstract void getMediaUploadAuthorInfo(String fileName, String url, IRongCoreCallback.ResultCallback<MediaUploadAuthorInfo> callback)
Retrieves the private cloud token for multimedia download.
Link copied to clipboard
public abstract void getMessage(int messageId, IRongCoreCallback.ResultCallback<Message> callback)
Retrieves the message body based on the message ID (unique value in the database index).
Link copied to clipboard
public abstract void getMessageByUid(String uid, IRongCoreCallback.ResultCallback<Message> callback)
Retrieves the message entity by its globally unique ID.
Link copied to clipboard
public abstract void getMessageCount(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Integer> callback)
Retrieves the total number of messages in the specified conversation.
Link copied to clipboard
public abstract void getMessageReadReceiptV4(String targetId, String messageUID, IRongCoreCallback.ResultCallbackEx<Integer, Integer, List<GroupMessageReader>> callback)
Get the list of users who have read the message (supports group chats)
Link copied to clipboard
public abstract void getMessages(ConversationType conversationType, String targetId, HistoryMessageOption historyMsgOption, IRongCoreCallback.IGetMessageCallback callback)
Retrieves the history messages of a specified conversation.
Link copied to clipboard
public abstract String getMinioOSSAddr()
Link copied to clipboard
public abstract void getMyUserProfile(IRongCoreCallback.ResultCallback<UserProfile> callback)
Get the current user profile
Link copied to clipboard
public abstract void getMyUserProfileVisibility(IRongCoreCallback.ResultCallback<UserProfileVisibility> callback)
User Permission Retrieval
Link copied to clipboard
Retrieves the Do Not Disturb time for message notifications.
Link copied to clipboard
public abstract void getOfflineMessageDuration(IRongCoreCallback.ResultCallback<String> callback)
Retrieves the offline message storage duration (in days).
Link copied to clipboard
@Deprecated()
public abstract void getPrivateDownloadToken(String fileName, IRongCoreCallback.ResultCallback<String> callback)
This interface is only applicable for private cloud SDK calls.
Link copied to clipboard
public abstract void getPushContentShowStatus(IRongCoreCallback.ResultCallback<Boolean> callback)
Retrieves the setting for displaying detailed content of remote push notifications.
Link copied to clipboard
Retrieves the remote push notification language settings.
Link copied to clipboard
public abstract void getPushReceiveStatus(IRongCoreCallback.ResultCallback<Boolean> callback)
Retrieves the setting for whether to receive remote push notifications.
Link copied to clipboard
public abstract RCConfiguration getRCConfiguration()
IM Configuration
Link copied to clipboard
public abstract void getRemoteHistoryMessages(ConversationType conversationType, String targetId, RemoteHistoryMsgOption remoteHistoryMsgOption, IRongCoreCallback.ResultCallback<List<Message>> callback)
Fetches remote history messages for a specified conversation.
public abstract void getRemoteHistoryMessages(ConversationType conversationType, String targetId, long dateTime, int count, IRongCoreCallback.ResultCallback<List<Message>> callback)
Fetches historical messages from the server before a specified time.
Link copied to clipboard
public abstract long getSendTimeByMessageId(int messageId)
Retrieves the send time of a message based on its message ID.
Link copied to clipboard
public abstract void getTags(IRongCoreCallback.ResultCallback<List<TagInfo>> callback)
Get user tags
Link copied to clipboard
public abstract void getTagsFromConversation(ConversationIdentifier conversationIdentifier, IRongCoreCallback.ResultCallback<List<ConversationTagInfo>> callback)
Retrieves all tags under the specified conversation
Link copied to clipboard
public abstract void getTextMessageDraft(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<String> callback)
Retrieves the draft information from a conversation.
Link copied to clipboard
public abstract void getTheFirstUnreadMessage(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Message> callback)
Get the first unread message.
Link copied to clipboard
public abstract void getTopConversationList(IRongCoreCallback.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)
Retrieves the list of pinned conversations based on the conversation type.
Link copied to clipboard
@Deprecated()
public abstract Activity getTopForegroundActivity()
Retrieves the topmost Activity in the foreground.
Link copied to clipboard
public abstract void getTotalUnreadCount(IRongCoreCallback.ResultCallback<Integer> callback)
Get the total count of unread messages across all conversations.
public abstract void getTotalUnreadCount(IRongCoreCallback.ResultCallback<Integer> callback, Array<Conversation> conversations)
Retrieves the total count of unread messages for all specified conversations.
Link copied to clipboard
public abstract TranslationInfo getTranslationInfo(int messageId, String language)
Retrieves cached translation information
Link copied to clipboard
public abstract Collection<TypingStatus> getTypingUserListFromConversation(ConversationType conversationType, String targetId)
Get the list of users currently typing in the conversation
Link copied to clipboard
public abstract void getUnreadConversationList(IRongCoreCallback.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)
Retrieves the list of unread local conversations for the current user based on the conversation type.
Link copied to clipboard
public abstract void getUnreadCount(Array<ConversationType> conversationTypes, IRongCoreCallback.ResultCallback<Integer> callback)
public abstract void getUnreadCount(IRongCoreCallback.ResultCallback<Integer> callback, Array<ConversationType> conversationTypes)
public abstract void getUnreadCount(Array<ConversationType> conversationTypes, boolean containBlocked, IRongCoreCallback.ResultCallback<Integer> callback)
Retrieves the total count of unread messages for specified conversation types.
public abstract void getUnreadCount(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Integer> callback)
Retrieves the count of unread messages for the specified conversation.
public abstract void getUnreadCount(String targetId, ConversationType conversationType, Array<String> objectNames, IRongCoreCallback.ResultCallback<Integer> callback)
Retrieves the count of unread messages of the specified message types in the specified conversation (excluding chatroom conversations).
Link copied to clipboard
public abstract void getUnreadCountByTag(String tagId, boolean containBlocked, IRongCoreCallback.ResultCallback<Integer> callback)
Get unread message count by tag
Link copied to clipboard
public abstract void getUnreadMentionedMessages(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<List<Message>> callback)
public abstract void getUnreadMentionedMessages(ConversationType conversationType, String targetId, int count, boolean desc, IRongCoreCallback.ResultCallback<List<Message>> callback)
Retrieves unread mention messages in a conversation.
Link copied to clipboard
public abstract void getUserProfiles(List<String> userIdList, IRongCoreCallback.ResultCallback<List<UserProfile>> callback)
Batch retrieve user profiles
Link copied to clipboard
public abstract void getVendorToken(IRongCoreCallback.ResultCallback<String> resultCallback)
Retrieves the authentication information of the logged-in user.
Link copied to clipboard
public static String getVersion()
Link copied to clipboard
public abstract int getVideoLimitTime()
Retrieves the maximum allowed duration for sending video files.
Link copied to clipboard
public static void init(Context context)
public static void init(Context context, String appKey)
public static void init(Context context, String appKey, InitOption option)
public static void init(Context context, String appKey, boolean enablePush)
public static void init(Context context, String appKey, boolean enablePush, Boolean isMainProcess)
Initializes the SDK.
Link copied to clipboard
public abstract void insertIncomingMessage(ConversationType type, String targetId, String senderUserId, ReceivedStatus receivedStatus, MessageContent content, IRongCoreCallback.ResultCallback<Message> resultCallback)
public abstract void insertIncomingMessage(ConversationType type, String targetId, String senderUserId, ReceivedStatus receivedStatus, MessageContent content, long sentTime, IRongCoreCallback.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, IRongCoreCallback.ResultCallback<Message> resultCallback)
Inserts a message into the local conversation.
public abstract void insertOutgoingMessage(ConversationType type, String targetId, SentStatus sentStatus, MessageContent content, long sentTime, IRongCoreCallback.ResultCallback<Message> resultCallback)
Inserts a message into the local conversation with the direction set to sent.
Link copied to clipboard
public abstract void inviteUsersToGroup(String groupId, List<String> userIds, IRongCoreCallback.ResultCallback<IRongCoreEnum.CoreErrorCode> callback)
Invite Users to Join a Group Who can invite others to join the group is determined by .
Link copied to clipboard
public abstract boolean isFileDownloading(Object uid)
Checks whether the file is currently being downloaded.
Link copied to clipboard
public abstract boolean isTextTranslationSupported()
Indicates whether the translation feature is supported.
Link copied to clipboard
public abstract void joinGroup(String groupId, IRongCoreCallback.ResultCallback<IRongCoreEnum.CoreErrorCode> callback)
Join a group The group join permission io.rong.imlib.model.
Link copied to clipboard
public abstract void kickGroupMembers(String groupId, List<String> userIds, QuitGroupConfig config, IRongCoreCallback.OperationCallback callback)
Remove from Group Note: After a user is removed, the group conversation information is retained, but the user will no longer receive messages from this group.
Link copied to clipboard
public abstract void logout()
Disconnects from the RCserver and stops receiving remote push notifications.
Link copied to clipboard
public abstract void pauseDownloadMediaFile(String fileUniqueId, IRongCoreCallback.OperationCallback callback)
Pauses the download of a multimedia file.
Link copied to clipboard
public abstract void pauseDownloadMediaMessage(Message message, IRongCoreCallback.OperationCallback callback)
Pauses the download of a multimedia message.
Link copied to clipboard
public abstract void querySubscribeEvent(SubscribeEventRequest request, IRongCoreCallback.ResultCallback<List<SubscribeInfoEvent>> callback)
Queries the current status of subscribed events.
public abstract void querySubscribeEvent(SubscribeEventRequest request, int pageSize, int startIndex, IRongCoreCallback.ResultCallback<List<SubscribeInfoEvent>> callback)
Link copied to clipboard
public abstract void quitGroup(String groupId, QuitGroupConfig config, IRongCoreCallback.OperationCallback callback)
Exit a group Note: After exiting, the group conversation information is retained, but the user will no longer receive messages from this group.
Link copied to clipboard
public abstract void recallMessage(Message message, String pushContent, IRongCoreCallback.ResultCallback<RecallNotificationMessage> callback)
Recall message
Link copied to clipboard
public abstract void refuseFriendApplication(String userId, IRongCoreCallback.OperationCallback callback)
Reject friend request
Link copied to clipboard
public abstract void refuseGroupApplication(String groupId, String inviterId, String applicantId, String reason, IRongCoreCallback.OperationCallback callback)
The group owner or administrator rejects a user's request to join the group.
Link copied to clipboard
public abstract void refuseGroupInvite(String groupId, String inviterId, String reason, IRongCoreCallback.OperationCallback callback)
User declined to join the group
Link copied to clipboard
@Deprecated()
public static void registerMessageType(Class<? extends MessageContent> messageContentClass)
Register custom message types Call this method after initialization and 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 connecting.
Link copied to clipboard
Remove the listener for connection status changes.
Link copied to clipboard
public abstract void removeConversation(ConversationType conversationType, String targetId, IRongCoreCallback.ResultCallback<Boolean> callback)
Removes a conversation from the conversation list.
Link copied to clipboard
public abstract void removeConversationsFromTag(String tagId, List<ConversationIdentifier> conversationIdentifierList, IRongCoreCallback.OperationCallback callback)
Deletes conversations from a specified tag
Link copied to clipboard
public abstract IRongCoreEnum.CoreErrorCode removeDatabase(String userId)
Deletes the message database for the specified user.
Link copied to clipboard
Removes the database upgrade status listener
Link copied to clipboard
public abstract void removeFromBlacklist(String userId, IRongCoreCallback.OperationCallback callback)
Removes a user from the blocklist.
Link copied to clipboard
public abstract void removeGroupFollows(String groupId, List<String> userIds, IRongCoreCallback.OperationCallback callback)
Remove users from the group's special attention list
Link copied to clipboard
public abstract void removeGroupManagers(String groupId, List<String> userIds, IRongCoreCallback.OperationCallback callback)
Remove group administrators
Link copied to clipboard
public abstract void removeMessageExpansion(List<String> keyArray, String messageUId, IRongCoreCallback.OperationCallback callback)
Deletes specific key-value pairs from the message extension information
Link copied to clipboard
Remove the Do Not Disturb time for message notifications.
Link copied to clipboard
public static boolean removeOnReceiveMessageListener(OnReceiveMessageWrapperListener listener)
Removes the listener for message received events.
Link copied to clipboard
public abstract void removeTag(String tagId, IRongCoreCallback.OperationCallback callback)
Remove tag
Link copied to clipboard
public abstract void removeTagsFromConversation(ConversationIdentifier conversationIdentifier, List<String> tagIds, IRongCoreCallback.OperationCallback callback)
Removes specified tags from a conversation
Link copied to clipboard
public abstract void saveMessageTranslation(int messageId, String content, String targetLanguage)
Save translation
Link copied to clipboard
public abstract void saveTextMessageDraft(ConversationType conversationType, String targetId, String content, IRongCoreCallback.ResultCallback<Boolean> callback)
Saves draft information for a conversation.
Link copied to clipboard
public abstract void searchConversations(String keyword, Array<ConversationType> conversationTypes, Array<String> objectNames, IRongCoreCallback.ResultCallback<List<SearchConversationResult>> resultCallback)
Search conversations based on keywords.
Link copied to clipboard
public abstract void searchFriendsInfo(String name, IRongCoreCallback.ResultCallback<List<FriendInfo>> callback)
Search for friend information based on nickname
Link copied to clipboard
public abstract void searchGroupMembers(String groupId, String name, PagingQueryOption option, IRongCoreCallback.PageResultCallback<GroupMemberInfo> callback)
Query group member information based on group member nickname.
Link copied to clipboard
public abstract void searchJoinedGroups(String groupName, PagingQueryOption option, IRongCoreCallback.PageResultCallback<GroupInfo> callback)
Search for groups I have joined by group name
Link copied to clipboard
public abstract void searchMessages(ConversationType conversationType, String targetId, String keyword, int count, long beginTime, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation based on a keyword.
public abstract void searchMessages(ConversationIdentifier conversationIdentifier, String keyword, Array<String> objectNameList, int limit, long startTime, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for local historical messages of specified message types in a specific conversation based on keywords.
public abstract void searchMessages(ConversationType conversationType, String targetId, String keyword, long startTime, long endTime, int offset, int limit, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation within a given time range based on keywords.
Link copied to clipboard
public abstract void searchMessagesByUser(ConversationType conversationType, String targetId, String userId, int count, long beginTime, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)
Searches for messages in a specified conversation based on the user ID.
Link copied to clipboard
public abstract void searchUserProfileByUniqueId(String uniqueId, IRongCoreCallback.ResultCallback<UserProfile> callback)
Search for user information by exact user application ID
Link copied to clipboard
public abstract void sendDirectionalMediaMessage(Message message, Array<String> userIds, String pushContent, String pushData, IRongCoreCallback.ISendMediaMessageCallback callback)
Sends a targeted multimedia message.
Link copied to clipboard
public abstract void sendDirectionalMessage(Message message, Array<String> userIds, String pushContent, String pushData, IRongCoreCallback.ISendMessageCallback callback)
public abstract void sendDirectionalMessage(Message message, Array<String> userIds, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMessageCallback callback)
public abstract void sendDirectionalMessage(ConversationType type, String targetId, MessageContent content, Array<String> userIds, String pushContent, String pushData, IRongCoreCallback.ISendMessageCallback callback)
public abstract void sendDirectionalMessage(ConversationType type, String targetId, MessageContent content, Array<String> userIds, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMessageCallback callback)
Sends a targeted message.
Link copied to clipboard
public abstract void sendImageMessage(Message message, String pushContent, String pushData, IRongCoreCallback.SendImageMessageCallback callback)
public abstract void sendImageMessage(ConversationType type, String targetId, MessageContent content, String pushContent, String pushData, IRongCoreCallback.SendImageMessageCallback callback)
Sends an image message.
public abstract void sendImageMessage(Message message, String pushContent, String pushData, IRongCoreCallback.SendImageMessageWithUploadListenerCallback callback)
Sends an image message and uploads the image to your own server.
Link copied to clipboard
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, IRongCoreCallback.ISendMediaMessageCallback callback)
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, IRongCoreCallback.ISendMediaMessageCallbackWithUploader callback)
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMediaMessageCallback callback)
public abstract void sendMediaMessage(Message message, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMediaMessageCallbackWithUploader callback)
Sends a multimedia message.
Link copied to clipboard
public abstract void sendMessage(Message message, String pushContent, String pushData, IRongCoreCallback.ISendMessageCallback callback)
public abstract void sendMessage(Message message, String pushContent, String pushData, SendMessageOption option, IRongCoreCallback.ISendMessageCallback callback)
Sends a message.
public abstract void sendMessage(ConversationType type, String targetId, MessageContent content, String pushContent, String pushData, IRongCoreCallback.ISendMessageCallback callback)
Sends a message based on the conversation type.
Link copied to clipboard
public abstract void sendPing()
OEM implements heartbeat alignment by sending Ping interface.
Link copied to clipboard
@Deprecated()
public abstract void sendReadReceiptMessage(ConversationType conversationType, String targetId, long timestamp)
public abstract void sendReadReceiptMessage(ConversationType conversationType, String targetId, long timestamp, IRongCoreCallback.ISendMessageCallback callback)
Sends a read receipt for messages in a specific conversation.
Link copied to clipboard
public abstract void sendReadReceiptMessageV4(ConversationType conversationType, String targetId, String startMessageUID, String endMessageUID, IRongCoreCallback.OperationCallback callback)
Send read receipt v4 (supports one-to-one and group chat)
Link copied to clipboard
public abstract void sendReadReceiptRequest(Message message, IRongCoreCallback.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, IRongCoreCallback.OperationCallback callback)
Send read receipts (only supported for groups and discussion groups)
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
public abstract void setAppVer(String appVer)
Sets the application version information for users integrating the RCSDK.
Link copied to clipboard
public abstract void setCheckDuplicateMessage(boolean enableCheck)
Set the RCmessage deduplication switch When the sender sends a message under poor network conditions, the message reaches the server but the sender does not receive the server's ack, causing the sender to assume the message failed to send.
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, IRongCoreCallback.ResultCallback<ConversationNotificationStatus> callback)
Sets the message notification status for a conversation.
Link copied to clipboard
Sets up multi-device synchronization for conversation status (pin and Do Not Disturb) listeners.
Link copied to clipboard
Sets up multi-device synchronization monitoring for Tags
Link copied to clipboard
public abstract void setConversationToTop(ConversationType conversationType, String targetId, boolean isTop, IRongCoreCallback.ResultCallback<Boolean> callback)
Sets the sticky status of a conversation.
@Deprecated()
public abstract void setConversationToTop(ConversationType conversationType, String targetId, boolean isTop, boolean needCreate, IRongCoreCallback.ResultCallback<Boolean> callback)
public abstract void setConversationToTop(ConversationType conversationType, String id, boolean isTop, boolean needCreate, boolean needUpdateTime, IRongCoreCallback.ResultCallback<Boolean> callback)
Sets the pinned status of a conversation.
Link copied to clipboard
public abstract void setConversationToTopInTag(String tagId, ConversationIdentifier conversationIdentifier, boolean isTop, IRongCoreCallback.OperationCallback callback)
Set the top status of a conversation in a tag
Link copied to clipboard
public abstract void setDatabaseOperationTimeThreshold(int milliseconds)
Link copied to clipboard
public abstract void setFriendAddPermission(FriendAddPermission permission, IRongCoreCallback.OperationCallback callback)
Sets the friend request permission for the current user.
Link copied to clipboard
public abstract void setFriendEventListener(FriendEventListener listener)
Link copied to clipboard
public abstract void setFriendInfo(String userId, String remark, Map<String, String> extProfile, IRongCoreCallback.OperationCallback callback)
Set friend information
Link copied to clipboard
public abstract void setGroupEventListener(GroupEventListener listener)
Link copied to clipboard
public abstract void setGroupMemberInfo(String groupId, String userId, String nickname, String extra, IRongCoreCallback.OperationCallback callback)
Set group member profile The group member information update mode, memberInfoEditPermission , determines whether group member profiles can be modified.
Link copied to clipboard
public abstract void setGroupRemark(String groupId, String remark, IRongCoreCallback.OperationCallback callback)
Set Group Alias
Link copied to clipboard
Sets the listener for blocked 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, IRongCoreCallback.ResultCallback<Boolean> callback)
Sets the additional information for a local message.
Link copied to clipboard
public abstract void setMessageReadTime(long messageId, long timestamp, IRongCoreCallback.OperationCallback callback)
Sets the read timestamp for a message.
Link copied to clipboard
public abstract void setMessageReceivedStatus(int messageId, ReceivedStatus receivedStatus, IRongCoreCallback.ResultCallback<Boolean> callback)
Sets the message received status.
Link copied to clipboard
public abstract void setMessageSentStatus(Message message, IRongCoreCallback.ResultCallback<Boolean> callback)
Sets the message sending status.
Link copied to clipboard
public abstract void setNotificationQuietHours(String startTime, int spanMinutes, IRongCoreCallback.OperationCallback callback)
Sets the Do Not Disturb time for message notifications.
Link copied to clipboard
public abstract void setOfflineMessageDuration(int duration, IRongCoreCallback.ResultCallback<Long> callback)
Sets the storage duration for offline messages on the server (in days).
Link copied to clipboard
Sets the message recall listener
Link copied to clipboard
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 setPingTimeOut(int time)
Link copied to clipboard
public abstract boolean setProxy(RCIMProxy proxy)
Set Proxy
Link copied to clipboard
public abstract void setPushContentShowStatus(boolean showStatus, IRongCoreCallback.OperationCallback callback)
Sets whether to display the details of remote push notifications.
Link copied to clipboard
Sets the language for remote push notifications.
Link copied to clipboard
public abstract void setPushLanguageCode(String language, IRongCoreCallback.OperationCallback callback)
Sets the natural language for push notification content.
Link copied to clipboard
Sets up a listener for changes in push notification configuration.
Link copied to clipboard
public abstract void setPushReceiveStatus(boolean receiveStatus, IRongCoreCallback.OperationCallback callback)
Sets whether to receive remote notifications.
Link copied to clipboard
Sets the log output listener.
Link copied to clipboard
Sets the message receipt listener.
Link copied to clipboard
Link copied to clipboard
public abstract void setReconnectKickEnable(boolean enable)
Sets whether to kick out the reconnecting device during reconnection.
Link copied to clipboard
public abstract void setRLogFileMaxSize(long pSize)
Sets the size of the business log file, with a default of 1M.
Link copied to clipboard
public abstract void setRLogLevel(int pLevel)
Sets the console log level.
Link copied to clipboard
public static void setServerInfo(String naviServer, String fileServer)
Sets the navigation server and media server addresses for private deployment.
Link copied to clipboard
public static void setStatisticDomain(String domain)
Configures the data upload URL (optional).
Link copied to clipboard
Sets the listener for multi-device synchronization of conversation read status.
Link copied to clipboard
public abstract void setTagListener(IRongCoreListener.TagListener listener)
Sets the callback for conversation tag changes.
Link copied to clipboard
Sets the typing status listener.
Link copied to clipboard
@Deprecated()
public abstract void setUploadCallback(UploadCallback pCallback)
Sets the callback for uploading RLog logs to the server.
Link copied to clipboard
public abstract void stopDestructMessage(Message message)
Cancel the burn-after-reading message.
Link copied to clipboard
public abstract void subscribeEvent(SubscribeEventRequest request, IRongCoreCallback.SubscribeEventCallback<List<String>> callback)
Subscribes to user status events.
Link copied to clipboard
public abstract void supportResumeBrokenTransfer(String url, IRongCoreCallback.ResultCallback<Boolean> callback)
Determines whether resumable upload is supported.
Link copied to clipboard
public abstract void switchAppKey(String appKey)
Switch appKey.
Link copied to clipboard
public abstract void syncConversationReadStatus(ConversationType type, String targetId, long timestamp, IRongCoreCallback.OperationCallback callback)
Synchronizes the read status of a conversation.
Link copied to clipboard
public abstract void transferGroupOwner(String groupId, String newOwnerId, boolean quitGroup, QuitGroupConfig config, IRongCoreCallback.OperationCallback callback)
Transfer group ownership
Link copied to clipboard
public abstract void unSubscribeEvent(SubscribeEventRequest request, IRongCoreCallback.SubscribeEventCallback<List<String>> callback)
Unsubscribes from user status events.
Link copied to clipboard
public abstract void updateConversationInfo(ConversationType conversationType, String targetId, String title, String portrait, IRongCoreCallback.ResultCallback<Boolean> callback)
Updates conversation information.
Link copied to clipboard
public abstract void updateGroupInfo(GroupInfo groupInfo, IRongCoreCallback.OperationCallbackEx<String> callback)
Update group information The group information update mode, defined by , determines whether group information and permission details can be modified.
Link copied to clipboard
public abstract void updateMessageExpansion(Map<String, String> expansion, String messageUId, IRongCoreCallback.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 updateMyUserProfile(UserProfile profile, IRongCoreCallback.UpdateUserProfileCallback callback)
Update user profile Note: It is recommended to fetch the user profile first and then update the profile based on the latest user profile.
Link copied to clipboard
public abstract void updateMyUserProfileVisibility(UserProfileVisibility visibility, IRongCoreCallback.ResultCallback<Boolean> callback)
User Permission Settings
Link copied to clipboard
public abstract void updateRcConfiguration(RCConfiguration configuration)
Update RCConfiguration Must be set after the init method is executed to take effect
Link copied to clipboard
public abstract void updateTag(TagInfo tagInfo, IRongCoreCallback.OperationCallback callback)
Update Tag