Staticcreate开发者后台获取的 AppKey
引擎配置项
引擎实例
销毁引擎 引擎销毁后如果当前未退出登录,SDK 会自动退出,且仍接受 push
Register native custom message
Unique identifier of the message
Storage policy of the message
Status code of current operation. 0 means success, non-zero indicates failure. Refer to error codes for details
Register native custom media message
Unique identifier of the message
Storage policy of the message
Status code of the current operation. 0 indicates success, non-zero indicates failure. Refer to error codes for details
Connect to RC server. Call this once globally in your app. If a non-business error code is returned, the SDK will retry. If still unsuccessful, it will retry when the device’s network status changes.
Token obtained from the server API
Connection timeout in seconds. If timeLimit ≤ 0, IM will keep trying until success or failure (e.g., invalid token). If timeLimit > 0, IM will try for up to timeLimit seconds. If connected within timeLimit, the SDK will auto-reconnect on network changes or app state changes. If not connected within timeLimit, the listener will notify timeout, and you’ll need to call connect again.
Optionalcallback: RCIMIWConnectCallbackConnection event callback. Supported since SDK 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success, and the result is handled in the callback. Non-zero means failure, and no callback will be triggered. Check error codes for details.
Disconnect link Note: The SDK automatically reconnects during app state changes or network issues to ensure reliability. Only call this method if your app logic requires logout.
Whether to receive push after disconnecting. true: receive remote push, false: stop receiving remote push
Status code of the operation. 0 indicates success, with results in the callback. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details.
Build a text message
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
Text content
Text message entity
Build an image message
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
Local path of the image message, must be valid
Image message entity
Build a file message
Conversation type
Conversation ID
Channel ID, only supported in super groups, pass null for other conversation types
Local path of the file message, must be a valid path
File message entity
Build a short video message
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
Local path of the short video message. Must be valid.
Duration of the short video message
Video message entity
Build a voice message (HD voice)
Session type
Session ID
Channel ID, only supported for super groups. Pass null for other session types.
Local path of the voice message, must be valid
Duration of the voice message
Voice message entity
Build a reference message
Conversation type
Conversation ID
Channel ID, only for supergroups. Pass null for other conversation types.
Referenced message
Referenced text content
Reference message entity
Build a GIF message
Session type
Session ID
Channel ID, only for super groups, set to null for other session types
Local path of the GIF message
GIF message entity
Build custom message
Conversation type
Conversation ID
Channel ID, only supported for super groups, pass null for other types
Message storage policy
Unique message identifier
Key-value pairs for message content
Custom message entity
Build location message
Conversation type
Conversation ID
Channel ID, only supported in super groups, pass null for other types
Longitude
Latitude
POI info
Local path to thumbnail, must be valid
Location message entity
Build native custom message
Conversation type
Conversation ID
Channel ID, only for super groups, pass null for other types
Unique identifier of the message
Key-value pairs of message content
Native custom message
Build native custom media message
Conversation type
Conversation ID
Channel ID, only for super groups, pass null for other types
Unique message identifier
Local path of the media file, must be valid
Key-value pairs for message content
Native custom media message
Send a regular message
The message entity to send
Optionalcallback: RCIMIWSendMessageCallbackEvent callback for sending messages. SDK supports callback method from version 5.3.1. Other callback methods are deprecated since version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered
Status code of the current operation. 0 indicates success—specific results require implementing the interface callback. Non-zero indicates failure—no callback will be triggered. Refer to error codes for details
Send media message
Media message entity to send
Optionallistener: RCIMIWSendMediaMessageListenerEvent listener for sending media message
Status code of current operation. 0 means success—results are in the callback. Non-zero means failure—no callback triggered. Check error codes for details
Cancel sending a media message
Media message entity to cancel
Optionalcallback: IRCIMIWCancelSendingMediaMessageCallbackEvent callback for canceling the media message. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered.
Status code of the current operation. 0 means success, specific results require implementing the interface callback. Non-zero means the operation failed, no callback is triggered, and detailed errors refer to the error codes.
Download media message
Media message entity to download
Optionallistener: RCIMIWDownloadMediaMessageListenerEvent listener for media message download
Status code of current operation. 0 means success, detailed results require interface callback. Non-zero means failure, no callback triggered, refer to error codes for details
Cancel media message download
Media message entity to cancel download
Optionalcallback: IRCIMIWCancelDownloadingMediaMessageCallbackEvent callback for canceling media message download. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback is triggered.
Status code of current operation. 0 means success, with specific results in the callback. Non-zero means failure, and no callback is triggered. Check error codes for details.
Fetch a conversation
Conversation type
Conversation ID
Channel ID, only for super groups, pass null for other types
Optionalcallback: IRCIMIWGetConversationCallbackCallback for conversation events. SDK supports callback from version 5.3.1. Other callback methods deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the operation. 0 means success, results via callback. Non-zero means failure, no callback triggered. Refer to error codes for details
Fetch specific conversations
Conversation types
Channel ID, only for supergroups, pass null for other types
Timestamp (ms), fetch conversations before this time, pass 0 for latest data
Number of queries, 0 < count ≤ 50
Optionalcallback: IRCIMIWGetConversationsCallbackCallback for conversation list events. SDK supports callback since 5.3.1. Other callback methods deprecated in 5.4.0, will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the operation. 0 means success, detailed results via callback. Non-zero means failure, no callback triggered, see error codes for details
Get a list of conversations with unread messages by type
Supports single chat, group chat, and system conversations
Optionalcallback: IRCIMIWGetUnreadConversationsCallbackCallback for conversation list events
Status code of the current operation. 0 means success, results are returned via callback. Non-zero means failure, no callback triggered. See error codes for details
Remove a conversation
Conversation type
Conversation ID
Channel ID, only supported for supergroups, pass null for other types
Optionalcallback: IRCIMIWRemoveConversationCallbackCallback for conversation removal. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the operation. 0 means success, non-zero means failure. Detailed errors refer to error codes
Remove conversations by type
Set of conversation types
Channel ID, only supported for super groups. Pass null for other conversation types.
Optionalcallback: IRCIMIWRemoveConversationsCallbackCallback for conversation removal events. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered.
Status code of the operation. 0 indicates success, specific results require implementing the callback. Non-zero indicates failure, no callback is triggered. Refer to error codes for details.
Get unread message count for a session Note: Chat rooms not supported!
Session type
Session ID
Channel ID, only for super groups. Pass null for other session types.
Optionalcallback: IRCIMIWGetUnreadCountCallbackCallback for unread count events. SDK supports callback since version 5.3.1. Other callback methods deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of current operation. 0 means success, result needs to be handled in callback. Non-zero means failure, no callback triggered. Refer to error codes for details.
Get total unread count
Channel ID, only supported for super groups. Pass null for other session types.
Optionalcallback: IRCIMIWGetTotalUnreadCountCallbackCallback for unread count events. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—check the callback for details. Non-zero means the call failed and no callback will be triggered. Refer to error codes for details.
Get the count of unread @ messages in a session Note: Not supported in chat rooms
Session type
Session ID
Channel ID, only supported in super groups. Pass null for other session types
Optionalcallback: IRCIMIWGetUnreadMentionedCountCallbackCallback for unread @ message count. SDK supports callback since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the current operation. 0 indicates success—check the callback for results. Non-zero means the call failed, and no callback will be triggered. Refer to error codes for details
Get the total count of unread messages from all supergroup chats the user has joined.
Optionalcallback: IRCIMIWGetUltraGroupAllUnreadCountCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated starting from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—implement the callback for results. Non-zero means the call failed—no callback will be triggered. Refer to error codes for details.
Get the total count of unread @ mentions across all super group chats the user has joined
Optionalcallback: IRCIMIWGetUltraGroupAllUnreadMentionedCountCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only this callback is triggered
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback is triggered. Refer to error codes for details
Get unread message count for a specific conversation
Conversation ID
Optionalcallback: IRCIMIWGetUltraGroupUnreadCountCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If a callback is provided, only it will be triggered.
Status code of the operation. 0 means success, with results in the callback. Non-zero means failure, no callback triggered. Refer to error codes for details.
Get the count of @ mentions in a super group chat
Chat ID
Optionalcallback: IRCIMIWGetUltraGroupUnreadMentionedCountCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. Refer to error codes for details.
Load unread count by conversation types Note: Chat rooms aren’t supported!
Set of conversation types
Channel ID, only for super groups. Pass null for other conversation types.
Include unread count from muted messages
Optionalcallback: IRCIMIWGetUnreadCountByConversationTypesCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success—check the callback for results. Non-zero means failure—no callback is triggered. Refer to error codes for details.
Clear unread message count for a session Note: Not supported for chat rooms!
Session type
Session ID
Channel ID, only for super groups, pass null for other session types
Timestamp of the last read message, pass the latest timestamp to clear all
Optionalcallback: IRCIMIWClearUnreadCountCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered
Status code of the operation. 0 indicates success, non-zero means failure without triggering the callback. Refer to error codes for details
Save session draft info
Session type
Session ID
Channel ID, only supported for super groups. Pass null for other session types
Text content of the draft
Optionalcallback: IRCIMIWSaveDraftMessageCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated since version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered
Status code of the current operation. 0 indicates success, and the result needs to be handled in the callback. Non-zero indicates failure, and no callback will be triggered. Refer to error codes for details
Fetch draft messages in a conversation
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types
Optionalcallback: IRCIMIWGetDraftMessageCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered
Status code of the current operation. 0 indicates success. For detailed results, implement the callback interface. Non-zero values indicate failure, and no callback will be triggered. Refer to error codes for details
Clear draft messages in a specific conversation
Conversation type
Conversation ID
Channel ID, only supported for supergroups, pass null for other conversation types
Optionalcallback: IRCIMIWClearDraftMessageCallbackEvent callback. SDK supports callback mode starting from version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of the current operation. 0 indicates success, detailed results require implementing the callback. Non-zero indicates failure, no callback will be triggered, refer to error codes for details
Get the list of muted conversations
Conversation types
Channel ID, only supported for supergroups. Pass null for other conversation types
Optionalcallback: IRCIMIWGetBlockedConversationsCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the current operation. 0 means success—check the callback for results. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Pin a conversation. If it doesn’t exist, the SDK creates and pins it automatically.
Conversation type
Conversation ID
Channel ID, only for super groups. Pass null for other types.
Pin status
Optionalcallback: IRCIMIWChangeConversationTopStatusCallbackEvent callback. Supported since SDK 5.3.1. Other callback methods deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback triggered. See error codes for details.
Get the pinned status of a conversation
Conversation type
Conversation ID
Channel ID, only supported for super groups. Pass null for other conversation types.
Optionalcallback: IRCIMIWGetConversationTopStatusCallbackEvent callback. SDK supports callback mode starting from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the current operation. 0 indicates success—check the callback for results. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details.
Sync conversation read status
Conversation type
Conversation ID
Channel ID, only supported for supergroups. Pass null for other conversation types
Timestamp of the last read message in the conversation
Optionalcallback: IRCIMIWSyncConversationReadStatusCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of the current operation. 0 indicates success, detailed results need to implement the callback interface. Non-zero indicates failure, and no callback will be triggered. Refer to error codes for details
Send a typing status to the conversation. Currently, only one-on-one chats are supported.
Conversation type
Conversation ID
Channel ID, only used for super groups. Pass null for other conversation types.
Current status
Status code of the operation. 0 means success, with results in the callback. Non-zero means failure, no callback triggered. Check error codes for details.
Load historical messages
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types
Current message timestamp
Message retrieval direction. BEFORE: get messages before sentTime (descending), AFTER: get messages after sentTime (ascending)
Message loading strategy. LOCAL: load local only, REMOTE: load remote only, LOCAL_REMOTE: load both local and remote
Number of messages to retrieve, 0 < count ≤ 20
Optionalcallback: IRCIMIWGetMessagesCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback is triggered
Status code of the current operation. 0 means success, check the callback for results. Non-zero means failure, no callback is triggered. Refer to error codes for details
Get message body by message id (unique value in local database index)
Message id, available in the message object
Optionalcallback: IRCIMIWGetMessageCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered.
Status code of the current operation. 0 means success—check the callback for results. Non-zero means the call failed, and no callback will be triggered. Refer to error codes for details.
Get message entity by global unique ID
Message UID, available in the message object. Only sent messages have a value.
Optionalcallback: IRCIMIWGetMessageCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated since 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success—check the callback for results. Non-zero means failure—no callback will be triggered. Refer to error codes for details.
Get the first unread message
Conversation type
Conversation ID
Channel ID, only for super groups—set to null for other types
Optionalcallback: IRCIMIWGetFirstUnreadMessageCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered
Status code of the operation. 0 means success—check the callback for results. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Fetch unread @ messages in a conversation
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types
Optionalcallback: IRCIMIWGetUnreadMentionedMessagesCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Insert a message
The message to insert
Optionalcallback: IRCIMIWInsertMessageCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback is triggered.
Status code of the operation. 0 indicates success—check the callback for results. Non-zero means the operation failed, and no callback is triggered. Refer to error codes for details.
Insert multiple messages—supergroups not supported
Collection of messages to insert
Optionalcallback: IRCIMIWInsertMessagesCallbackEvent callback. SDK supports callback-style events starting from version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—specific results require implementing the callback. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details.
Clear messages
Conversation type
Conversation ID
Channel ID, only supported for supergroups. Pass null for other conversation types
Clear messages up to this timestamp. 0 ≤ timestamp ≤ sentTime of the last message in the current conversation. 0 clears all messages, other values clear messages ≤ recordTime
Clear policy
Optionalcallback: IRCIMIWClearMessagesCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered
Status code of current operation. 0 means success, non-0 means failure. For detailed errors, refer to error codes
Delete local messages
Message collection
Optionalcallback: IRCIMIWDeleteLocalMessagesCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated since version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—check the callback for details. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for more info.
Delete messages
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
Message collection
Optionalcallback: IRCIMIWDeleteMessagesCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—results are returned via the callback. Non-zero indicates failure—no callback is triggered. Refer to error codes for details.
Recall a message
Message to be recalled
Optionalcallback: IRCIMIWRecallMessageCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success, and the result needs to be handled in the callback. Non-zero indicates failure, and no callback will be triggered. Refer to the error codes for details.
Send read receipt for messages in a conversation
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
Timestamp of the last read message in the conversation
Optionalcallback: IRCIMIWSendPrivateReadReceiptMessageCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
Status code of the current operation. 0 indicates success. Specific results require implementing the callback. Non-zero indicates failure, and no callback will be triggered. Refer to error codes for details.
Request group chat message read receipt
Message to request read receipt for
Optionalcallback: IRCIMIWSendGroupReadReceiptRequestCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
Status code of current operation. 0 means success—check callback for details. Non-zero means failure—no callback triggered. Refer to error codes for details.
Send group read receipt
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
List of messages in the conversation to send read receipts for
Optionalcallback: IRCIMIWSendGroupReadReceiptResponseCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
Status code of the current operation. 0 indicates success, with specific results in the callback. Non-zero indicates failure, no callback will be triggered. Refer to error codes for details
Update message expansion info Each message can carry up to 300 key-value pairs, with a max of 20 pairs per update
Message’s unique ID, available in the message object—only sent messages have this value
Key-value pairs to update, stored in a HashMap. Keys support letters, numbers, and special characters (+ = - _)—no Chinese characters. Values can include spaces
Optionalcallback: IRCIMIWUpdateMessageExpansionCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. See error codes for details
Remove specific key-value pairs from message extensions
Message’s messageUid, available in the message object. Only successfully sent messages have a value
List of keys to remove from message extensions, type is ArrayList
Optionalcallback: IRCIMIWRemoveMessageExpansionForKeysCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback is triggered
Status code of the current operation. 0 means success—check the callback for results. Non-zero means the operation failed, and no callback is triggered. Refer to error codes for details
Set message sending status
Message ID, available in the message object
Status to modify
Optionalcallback: IRCIMIWChangeMessageSentStatusCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered
Status code of the operation. 0 means success, specific results require interface callback. Non-zero means failure, no callback triggered, see error codes for details
Set message receive status
Message ID, available from the message object
Status to modify
Optionalcallback: IRCIMIWChangeMessageReceivedStatusCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Join a chat room
Chat room session ID
Number of messages to fetch upon entry, -1 fetches none, 0 fetches 10, max 50
Create chat room if it doesn’t exist, TRUE creates and joins, FALSE joins directly if exists
Optionalcallback: IRCIMIWJoinChatRoomCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods deprecated in 5.4.0, will be removed in 6.x. If callback is provided, only it will be triggered
Status code of current operation, 0 means success, non-0 means failure, no callback triggered, see error codes for details
Leave a chat room
Chat room session ID
Optionalcallback: IRCIMIWLeaveChatRoomCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Fetch chat room message history. Note: Enable cloud storage for chat room messages first.
Chat room session ID
Start message timestamp
Fetch order: 0 for reverse, 1 for forward
Number of messages to fetch, 0 < count ≤ 50
Optionalcallback: IRCIMIWGetChatRoomMessagesCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered.
Status code of current operation. 0 means success—check callback for details. Non-zero means failure—no callback is triggered. Refer to error codes for details.
Set custom chat room properties
Chat room session ID
Property name, supports uppercase, lowercase letters, numbers, and special characters + = - _, max length 128 characters
Property value, max length 4096 characters
Automatically delete key-value pair when user disconnects or leaves
Overwrite existing key if present
Optionalcallback: IRCIMIWAddChatRoomEntryCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods deprecated in 5.4.0, planned for removal in 6.x. If callback is provided, only callback is triggered
Status code of current operation. 0 indicates success, non-zero indicates failure. Detailed errors refer to error codes
Set chat room custom properties in bulk
Chat room session ID
Chat room properties
Whether to automatically delete the key-value pair when user disconnects or leaves
Whether to force overwrite
Optionalcallback: IRCIMIWAddChatRoomEntriesCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of current operation. 0 indicates success—check callback for details. Non-zero indicates failure—no callback will be triggered. Refer to error codes for details
Get a single chat room property
Chat room session ID
Chat room property key
Optionalcallback: IRCIMIWGetChatRoomEntryCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—check the callback for results. Non-zero means the operation failed—no callback will be triggered. Refer to error codes for details.
Get all chatroom properties
Chatroom session ID
Optionalcallback: IRCIMIWGetChatRoomAllEntriesCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of current operation. 0 means success—specific results need to implement the callback. Non-zero means the operation failed—no callback will be triggered. Refer to error codes for details
Remove custom chat room attributes.
Chat room session ID
Chat room attribute key
Force deletion
Optionalcallback: IRCIMIWRemoveChatRoomEntryCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated starting from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the operation. 0 indicates success, and results are returned via callback. Non-zero indicates failure, and no callback is triggered. Refer to error codes for details.
Delete chat room custom attributes in bulk
Chat room session ID
Chat room attributes
Force override
Optionalcallback: IRCIMIWRemoveChatRoomEntriesCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated starting from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback is triggered.
Status code of the current operation. 0 means success—check the callback for results. Non-zero means the operation failed, and no callback is triggered. Refer to error codes for details.
Block a user Once blocked, they’ll see “Message failed—you’re blocked” when trying to message you. You can still message them.
User ID
Optionalcallback: IRCIMIWAddToBlacklistCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated as of 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success—check the callback for results. Non-zero means failure—no callback will be triggered. See error codes for details.
Remove a user from the blacklist
User ID
Optionalcallback: IRCIMIWRemoveFromBlacklistCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered.
Status code of the current operation. 0 means success—check the callback for details. Non-zero means the operation failed—no callback will be triggered. Refer to error codes for details.
Check if a user is on the blacklist
User ID
Optionalcallback: IRCIMIWGetBlacklistStatusCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—results are returned via the callback. Non-zero values indicate failure, and no callback will be triggered. Refer to error codes for details.
Get the current user’s blacklist
Optionalcallback: IRCIMIWGetBlacklistCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the current operation. 0 means success—check the callback for results. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Search messages in a specific conversation by keyword.
Conversation type
Conversation ID
Channel ID, only supported in super groups. Pass null for other conversation types.
Search keyword
Search messages before beginTime. Pass 0 to start from the latest message and search backward.
Number of messages to query, 0 < count ≤ 50.
Optionalcallback: IRCIMIWSearchMessagesCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated since 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the current operation. 0 indicates success, with detailed results in the callback. Non-zero means the call failed, no callback will be triggered. Refer to error codes for details.
Search messages in a specific conversation within a time range by keyword.
Conversation type
Conversation ID
Channel ID, only supported for super groups, pass null for other conversation types
Search keyword
Start time
End time
Offset
Number of search results to return, 0 < count ≤ 50
Optionalcallback: IRCIMIWSearchMessagesByTimeRangeCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of the current operation. 0 indicates success, detailed results require implementing the callback, non-0 indicates failure and won't trigger the callback, refer to error codes for details
Search messages in a specific conversation by user ID.
User ID
Conversation type
Conversation ID
Channel ID, only supported for super groups. Pass null for other conversation types.
Start time for query. Pass 0 to search from the latest message, searching backward from this time.
Number of search results to return. 0 < count ≤ 50.
Optionalcallback: IRCIMIWSearchMessagesByUserIdCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
Status code of the current operation. 0 indicates success—check the callback for results. Non-zero indicates failure—no callback will be triggered. Refer to error codes for details.
Search conversations by keyword.
Conversation type collection
Channel ID, only supported for super groups, pass null for other conversation types
Message types to search
Keyword to search
Optionalcallback: IRCIMIWSearchConversationsCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered
Status code of current operation. 0 means success, results need to be handled via callback. Non-zero means failure, no callback will be triggered, refer to error codes for details
Mute notifications for a specific time period
Start time in HH:MM:SS format
Duration in minutes, 0 < spanMinutes < 1440 (e.g., 60 means 1 hour, 1439 means all day)
Notification level
Optionalcallback: IRCIMIWChangeNotificationQuietHoursCallbackEvent callback. Supported since SDK 5.3.1. Other callback methods deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of the operation. 0 means success, non-zero means failure. Detailed errors refer to error codes
Remove global quiet hours for message notifications
Optionalcallback: IRCIMIWRemoveNotificationQuietHoursCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods are deprecated starting from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—check the callback for details. Non-zero means the operation failed—no callback will be triggered. Refer to error codes for details.
Get the set quiet hours for message notifications
Optionalcallback: IRCIMIWGetNotificationQuietHoursCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. Refer to error codes for details.
Set message notification level for a conversation
Note: For supergroups, leaving channelId empty sets the do-not-disturb level for messages not in any channel, without affecting all channels in the supergroup
Conversation type. Note the following restrictions:
targetId). Submit a ticket to modify this behavior.Conversation ID
Supergroup channel ID. Pass null for other types.
"" to set the do-not-disturb level only for messages not in any channel within the specified supergroup (targetId). Submit a ticket to modify this behavior.Message notification level
Optionalcallback: IRCIMIWChangeConversationNotificationLevelCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated as of 5.4.0 and will be removed in 6.x. If callback is provided, only the callback is triggered.
Status code of the operation. 0 indicates success. Specific results require implementing the callback. Non-zero indicates failure, and no callback is triggered. Refer to error codes for details.
Get conversation notification status
Conversation type. Note the following limitations:
targetId). Submit a ticket for changes.Conversation ID
Supergroup channel ID. Pass null for other types.
targetId). Submit a ticket for changes.Optionalcallback: IRCIMIWGetConversationNotificationLevelCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated as of 5.4.0 and will be removed in 6.x. If a callback is passed, only the callback is triggered.
Status code of the current operation. 0 means success, and specific results require implementing the callback. Non-zero means the operation failed, and no callback is triggered. Refer to error codes for details.
Set message notification level for conversation type Note: To remove notification level, set level to RCIMIWPushNotificationLevelDefault
Conversation type
Notification level
Optionalcallback: IRCIMIWChangeConversationTypeNotificationLevelCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
Status code of current operation. 0 means success, specific result needs to implement callback. Non-zero means failure, no callback will be triggered. See error codes for details.
Get message notification status for conversation type
Conversation type
Optionalcallback: IRCIMIWGetConversationTypeNotificationLevelCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated since version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
[onConversationTypeNotificationLevelLoaded]
Set default message status for super groups Typically set by admins, applies to all members and channels in the super group. Has lower priority. If a member sets their own DND level, it overrides the default.
Conversation ID
Notification level
Optionalcallback: IRCIMIWChangeUltraGroupDefaultNotificationLevelCallbackEvent callback. Supported from SDK 5.3.1. Other callback methods deprecated in 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback triggered. Refer to error codes for details.
Get the default message status for a super group
Conversation ID
Optionalcallback: IRCIMIWGetUltraGroupDefaultNotificationLevelCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success—specific results require implementing the callback. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details.
Set default message status for supergroup channel
Conversation ID
Channel ID, only supported for supergroups
Notification level
Optionalcallback: IRCIMIWChangeUltraGroupChannelDefaultNotificationLevelCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered
Status code of current operation. 0 means success, detailed results need to implement the callback. Non-zero means failure, no callback triggered, refer to error codes for details
Get the default message status for an ultra group channel
Conversation ID
Channel ID, only supported for ultra groups
Optionalcallback: IRCIMIWGetUltraGroupChannelDefaultNotificationLevelCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered
Status code of the current operation. 0 indicates success—check the callback for details. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details
Set whether to show remote push content details. This feature requires enabling user settings from the server.
Whether to show remote push content
Optionalcallback: IRCIMIWChangePushContentShowStatusCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in version 6.x. If the callback parameter is passed, only the callback will be triggered.
Status code of the current operation. 0 indicates success. For specific results, implement the interface callback. Non-zero indicates failure, and no callback will be triggered. Refer to error codes for details.
Set push language
Push language, currently supports en_us, zh_cn, and ar_sa
Optionalcallback: IRCIMIWChangePushLanguageCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success, detailed results require implementing the interface callback. Non-zero indicates failure, no callback will be triggered, refer to error codes for details.
Set whether to receive remote push notifications Prerequisite: Mobile device is offline, Web and MAC/PC terminals are online This feature requires enabling user settings from the server
Whether to receive
Optionalcallback: IRCIMIWChangePushReceiveStatusCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated starting from version 5.4.0 and will be removed in version 6.x. If a callback is provided, only the callback will be triggered
Status code of the current operation. 0 indicates success, and specific results need to be implemented in the interface callback. Non-zero indicates failure, and no interface callback will be triggered. Refer to error codes for details
Send a message to specified group members
Message to send
Group member IDs
Optionalcallback: RCIMIWSendGroupMessageToDesignatedUsersCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated since 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered.
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback is triggered. Refer to error codes for details.
Get the total number of messages in a specified conversation.
Conversation type
Conversation ID
Channel ID, only supported for super groups. Pass null for other conversation types.
Optionalcallback: IRCIMIWGetMessageCountCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback method will be triggered.
Status code of the current operation. 0 indicates success, and the specific result needs to be handled in the callback. Non-zero indicates failure, and no callback will be triggered. Refer to the error code for details.
Get the list of pinned conversations by type
Set of conversation types
Channel ID, only supported for supergroups. Pass null for other conversation types.
Optionalcallback: IRCIMIWGetTopConversationsCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in 6.x. If callback is provided, only callback will be triggered.
Status code of the operation. 0 means success, and results are returned via callback. Non-zero means failure, and no callback will be triggered. Refer to error codes for details.
Report read time for supergroups
Conversation ID
Channel ID, supported for supergroups only
Read time
Optionalcallback: IRCIMIWSyncUltraGroupReadStatusCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of current operation. 0 means success—check callback for details. Non-zero means failure—no callback triggered. Refer to error codes for details
Get conversation list for all channels under a specific session—super group only
Conversation type
Conversation ID
Optionalcallback: IRCIMIWGetConversationsForAllChannelCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods are deprecated starting from version 5.4.0 and will be removed in 6.x. If callback is provided, only callback is triggered.
Status code of current operation. 0 indicates success—specific results require implementing the callback. Non-zero means the operation failed—no callback is triggered. Refer to error codes for details.
Modify ultra group message
Unique message ID, available in the message object. Only successfully sent messages have this value
Message to modify
Optionalcallback: IRCIMIWModifyUltraGroupMessageCallbackEvent callback. SDK supports callback method from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered
Status code of current operation. 0 means success—check the callback for details. Non-zero means failure—no callback will be triggered. Refer to error codes for details
Recall a supergroup message
Message to recall
Whether to delete the remote message
Optionalcallback: IRCIMIWRecallUltraGroupMessageCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only it will be triggered.
Status code of the operation. 0 means success, but you’ll need to implement the callback for details. Non-zero means the operation failed, and no callback will be triggered. Check error codes for details.
Delete messages in a supergroup before a specified time
Conversation ID
Channel ID, only supported in supergroups
Timestamp
Clear policy
Optionalcallback: IRCIMIWClearUltraGroupMessagesCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated in version 5.4.0 and will be removed in version 6.x. If a callback is provided, only the callback will be triggered.
Status code of the current operation. 0 indicates success, detailed results require implementing the callback interface. Non-zero indicates failure, no callback will be triggered, refer to error codes for details
Send ultra group typing status
Conversation ID
Channel ID, only supported in ultra groups
Typing status
Optionalcallback: IRCIMIWSendUltraGroupTypingStatusCallbackEvent callback. SDK supports callback mode from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If callback is provided, only the callback will be triggered
Status code of the current operation. 0 indicates success, non-zero indicates failure. Detailed errors refer to the error codes
Clear messages before a specific timestamp in all channels of a supergroup
Conversation ID
Timestamp
Optionalcallback: IRCIMIWClearUltraGroupMessagesForAllChannelCallbackEvent callback. SDK supports callback from version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If a callback is provided, only the callback will be triggered.
Status code of the operation. 0 indicates success, detailed results require implementing the callback. Non-zero indicates failure, no callback will be triggered, refer to error codes for details.
Fetch batch messages from the server
Retrieved message collection
Optionalcallback: IRCIMIWGetBatchRemoteUltraGroupMessagesCallbackEvent callback. SDK supports callback mode since version 5.3.1. Other callback methods are deprecated from version 5.4.0 and will be removed in 6.x. If a callback is provided, only it will be triggered.
Status code of the current operation. 0 indicates success—check the callback for results. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details.
Update ultra group message expansion info
Message’s unique identifier, available in the message object. Only sent messages have this value.
Key-value pairs for updated message expansion info, type is HashMap. Key supports uppercase/lowercase letters, numbers, and special symbols + = - _. No Chinese characters. Value can include spaces.
Optionalcallback: IRCIMIWUpdateUltraGroupMessageExpansionCallbackEvent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated as of version 5.4.0 and will be removed in version 6.x. If callback is provided, only callback is triggered.
Status code of the current operation. 0 means success—check the callback for results. Non-zero means the call failed, no callback is triggered. See error codes for details.
Remove specific key-value pairs from supergroup message expansion
messageUid of the message, available in the message object, and only successful messages have a value
list of keys to remove from message expansion, type is ArrayList
Optionalcallback: IRCIMIWRemoveUltraGroupMessageExpansionForKeysCallbackevent callback. SDK supports callback since version 5.3.1. Other callback methods are deprecated since version 5.4.0 and will be removed in version 6.x. If callback is provided, only callback will be triggered.
status code of current operation. 0 means success, specific result requires implementing the callback, non-0 means failure and no callback will be triggered, refer to error codes for details
Modify log level
Log level
Status code of current operation. 0 means success, results require callback implementation. Non-zero means failure, no callback triggered. Refer to error codes for details
Get the time difference between local and server time. After a message is sent, the SDK syncs with the server, and the time stored in the database is the server time. Use System.currentTimeMillis() - getDeltaTime() to get the current server time.
Time difference between local and server time
Create tag info
Unique identifier of the tag, string type, max length 10 chars.
Max length 15 chars, tag names can be duplicated.
Optionalcallback: IRCIMIWCreateTagCallbackEvent callback.
Status code of current operation. 0 means success, check callback for details. Non-zero means failure, no callback triggered, refer to error codes for details.
Remove tag
Unique identifier of the tag, string type, max length 10 characters
Optionalcallback: IRCIMIWRemoveTagCallbackEvent callback
Status code of current operation. 0 means success, check callback for details. Non-zero means failure, no callback triggered. Refer to error codes for details
Update tag info
Unique tag ID, string type, max 10 chars
New tag name, max 15 chars, duplicates allowed
Optionalcallback: IRCIMIWUpdateTagNameByIdCallbackEvent callback
Status code: 0 for success, trigger callback; non-zero for failure, no callback, see error codes
Get the tags created by the current user
Optionalcallback: IRCIMIWGetTagsCallbackEvent callback
Status code of the current operation. 0 means success, with details in the callback. Non-zero means failure, no callback triggered. Refer to error codes for details
Add a session to a specific tag
Unique tag identifier, string type, max length 10 chars
Session type
Session ID
Optionalcallback: IRCIMIWAddConversationToTagCallbackEvent callback
Status code of the operation. 0 means success—check the callback for details. Non-zero means failure—no callback triggered. Refer to error codes for details
Remove a session from the tag
Unique identifier of the tag, string type, max length 10 chars
Session type
Session ID
Optionalcallback: IRCIMIWRemoveConversationFromTagCallbackEvent callback
Status code of current operation. 0 means success—check callback for details. Non-zero means failure—no callback triggered. See error codes for details
Remove one or more tags from a specific session
Session type
Session ID
Collection of tags
Optionalcallback: IRCIMIWRemoveTagsFromConversationCallbackEvent callback
Status code of the current operation. 0 indicates success, with results returned via the callback. Non-zero indicates failure, no callback triggered, and detailed errors in the error codes
Get all tags for a specific session
Session type
Session ID
Optionalcallback: IRCIMIWGetTagsFromConversationCallbackEvent callback
Status code of current operation. 0 means success—check the callback for details. Non-zero means failure—no callback triggered. Refer to error codes for details
Fetch paginated local conversation list under a specific tag, using the timestamp of the last message in the conversation as the boundary
Unique identifier of the tag, string type, max length 10 characters
Timestamp of the conversation. Fetches conversations before this timestamp. Pass 0 for the first call, then use the operationTime property of the returned RCConversation object as the startTime for the next query
Number of conversations to fetch. If the actual number of conversations retrieved is less than count, it means all data has been fetched
Optionalcallback: IRCIMIWGetConversationsCallbackEvent callback
Status code of the current operation. 0 indicates success—check the callback for results. Non-zero means the operation failed, and no callback will be triggered. Refer to error codes for details
Get unread message count for all sessions with a specific tag
Unique tag identifier, string type, max length 10 chars
Include do-not-disturb sessions
Optionalcallback: IRCIMIWGetUnreadCountCallbackEvent callback
Status code of current operation. 0 means success, check callback for results. Non-zero means failure, no callback triggered. Refer to error codes for details
Pin a specific chat in all sessions with a given tag. For example, pin a private chat with "Tom" in all sessions tagged "Training Class".
Unique tag identifier, string type, max 10 characters
Session type
Session ID
Whether to pin
Optionalcallback: IRCIMIWChangeConversationTopStatusInTagCallbackEvent callback
Status code of current operation. 0 means success—check callback for results. Non-zero means failure—no callback triggered. Refer to error codes for details
Check if a session is pinned among all sessions with the same tag. Returns the pinned status on success.
Unique tag identifier, string type, max length 10 characters
Session type
Session ID
Optionalcallback: IRCIMIWGetConversationTopStatusInTagCallbackEvent callback
Status code of current operation. 0 indicates success, non-zero indicates failure. Detailed errors refer to error codes
Clear unread message count for all sessions with a specific tag
Unique tag identifier, string type, max length 10 characters
Optionalcallback: IRCIMIWClearMessagesUnreadStatusByTagCallbackEvent callback
Status code of current operation. 0 means success, specific results require callback implementation. Non-zero means failure, no callback triggered. Refer to error codes for details
Delete all sessions under a specific tag and unbind them from the tag. Once deleted, sessions no longer carry the specified tag. New messages in these sessions will create new sessions.
Unique identifier of the tag, string type, up to 10 characters.
Whether to delete messages
Optionalcallback: IRCIMIWClearConversationsByTagCallbackEvent callback.
Status code of the current operation. 0 indicates success, specific results require implementing the callback. Non-zero indicates failure, no callback will be triggered, refer to error codes for details.
Listen for incoming messages
Optionallistener: (Network status change
Optionallistener: (status: RCIMIWConnectionStatus) => voidSync session pin status across devices
Optionallistener: (Multi-device sync for session do-not-disturb status
Optionallistener: (Callback for message expansion changes
Optionallistener: (expansion: Map<string, string>, message: RCIMIWMessage) => voidCallback for deleted message extensions
Optionallistener: (message: RCIMIWMessage, keys: string[]) => voidMonitor chat room user join and exit events
Optionallistener: (targetId: string, actions: RCIMIWChatRoomMemberAction[]) => voidChat input status changes. For 1:1 chats, the listener triggers once when the other party is typing, and again when they stop. In the latter case, the typing user list in the callback is empty.
Optionallistener: (Listen for unread message sync. Triggered when another device clears unread counts for a session
Optionallistener: (type: RCIMIWConversationType, targetId: string, timestamp: number) => voidCallback for chatroom KV sync completion
Optionallistener: (roomId: string) => voidCallback for chat room KV changes
Optionallistener: (Supergroup message KV updated
Optionallistener: (messages: RCIMIWMessage[]) => voidSupergroup messages updated
Optionallistener: (messages: RCIMIWMessage[]) => voidSupergroup messages recalled
Optionallistener: (messages: RCIMIWMessage[]) => voidCallback for user input status changes Triggered when the client detects changes in user input status, notifying the session and current RCUltraGroupTypingStatusInfo list
Optionallistener: (info: RCIMIWUltraGroupTypingStatusInfo[]) => voidCallback for intercepted messages containing sensitive words
Optionallistener: (info: RCIMIWBlockedMessageInfo) => voidListen for chat room status changes
Optionallistener: (targetId: string, status: RCIMIWChatRoomStatus) => voidListener for group chat read receipt response
Optionallistener: (Callback when super group list sync completes
Optionallistener: () => voidCallback for joining a chat room
Optionallistener: (targetId: string) => void
创建接口引擎@param context 上下文