跳到主要内容

新旧 API 对照速查表

旧版本接口新版本接口
initcreate
setAndroidPushConfigcreate 中配置
connectconnect开发文档
disconnectdisconnect开发文档
setServerInfocreate 中配置
setStatisticServercreate 中配置
sendMessagesendMessage开发文档sendMediaMessage开发文档
sendMessageCarriesPushsendMessage开发文档sendMediaMessage开发文档
sendMessageWithCallBacksendMessage开发文档sendMediaMessage开发文档
sendIntactMessageWithCallBacksendMessage开发文档sendMediaMessage开发文档
sendDirectionalMessagesendGroupMessageToDesignatedUsers开发文档
sendDirectionalMessageWithOptionsendGroupMessageToDesignatedUsers开发文档
cancelSendMediaMessagecancelSendingMediaMessage
getHistoryMessagegetMessages开发文档
getHistoryMessagesgetMessages开发文档
clearHistoryMessagesclearMessages开发文档
getMessagegetMessages开发文档
getConversationListgetConversations开发文档
getConversationListByPagegetConversations开发文档
getConversationgetConversation开发文档
removeConversationremoveConversation开发文档
clearMessagesUnreadStatusclearUnreadCount开发文档
joinChatRoomjoinChatRoom开发文档
joinExistChatRoomjoinChatRoom开发文档
quitChatRoomleaveChatRoom开发文档
getRemoteHistoryMessagesgetMessages开发文档
getMessagesgetMessages开发文档
getMessagesgetMessages开发文档
insertIncomingMessageinsertMessage开发文档
insertOutgoingMessageinsertMessage开发文档
batchInsertMessageinsertMessages开发文档
deleteMessagesclearMessages开发文档
deleteMessageByIdsdeleteLocalMessages开发文档
getFirstUnreadMessagegetFirstUnreadMessage
getTotalUnreadCountgetTotalUnreadCount开发文档
getUnreadCountgetUnreadCount开发文档
getUnreadCountConversationTypeListgetUnreadCountByConversationTypes开发文档
setConversationNotificationStatuschangeConversationNotificationLevel开发文档
getConversationNotificationStatusgetConversationNotificationLevel开发文档
getBlockedConversationListgetBlockedConversations开发文档
setConversationToTopchangeConversationTopStatus开发文档
addToBlackListaddToBlacklist开发文档
removeFromBlackListremoveFromBlacklist开发文档
getBlackListStatusgetBlacklistStatus开发文档
getBlackListgetBlacklist开发文档
sendReadReceiptMessagesendPrivateReadReceiptMessage开发文档
sendReadReceiptRequestsendGroupReadReceiptRequest开发文档
sendReadReceiptResponsesendGroupReadReceiptResponse开发文档
syncConversationReadStatussyncConversationReadStatus开发文档
setNotificationQuietHourschangeNotificationQuietHours开发文档
removeNotificationQuietHoursremoveNotificationQuietHours开发文档
getNotificationQuietHoursgetNotificationQuietHours开发文档
getUnreadMentionedMessagesgetUnreadMentionedMessages
setChatRoomEntryaddChatRoomEntry开发文档
forceSetChatRoomEntryaddChatRoomEntry开发文档
getChatRoomEntrygetChatRoomEntry开发文档
getAllChatRoomEntriesgetAllChatRoomEntries开发文档
removeChatRoomEntryremoveChatRoomEntry开发文档
forceRemoveChatRoomEntryremoveChatRoomEntry开发文档
setChatRoomEntriesaddChatRoomEntries开发文档
removeChatRoomEntriesremoveChatRoomEntries开发文档
recallMessagerecallMessage开发文档
getTextMessageDraftgetDraftMessage开发文档
saveTextMessageDraftsaveDraftMessage开发文档
searchConversationssearchConversations
searchMessagessearchMessages开发文档
sendTypingStatussendTypingStatus开发文档
downloadMediaMessagedownloadMediaMessage开发文档
deleteRemoteMessagesdeleteMessages开发文档
clearMessagesclearMessages开发文档
setMessageReceivedStatuschangeMessageReceiveStatus
setMessageSentStatuschangeMessageSentStatus
clearConversationsremoveConversations开发文档
setReconnectKickEnablecreate 中配置
cancelDownloadMediaMessagecancelDownloadingMediaMessage开发文档
getRemoteChatRoomHistoryMessagesgetChatRoomMessages开发文档
imageCompressConfigcreate 中配置
getMessagegetMessageById开发文档
getMessageByUIdgetMessageByUId开发文档
updateMessageExpansionupdateMessageExpansion开发文档
removeMessageExpansionForKeyremoveMessageExpansionForKeys开发文档
syncUltraGroupReadStatussyncUltraGroupReadStatus开发文档
getConversationListForAllChannelgetConversationsForAllChannel开发文档
getUltraGroupUnreadMentionedCountgetUltraGroupUnreadMentionedCount开发文档
sendUltraGroupTypingStatussendUltraGroupTypingStatus开发文档
deleteUltraGroupMessagesForAllChannelclearUltraGroupMessagesForAllChannel开发文档
deleteUltraGroupMessagesclearUltraGroupMessages开发文档
deleteRemoteUltraGroupMessagesclearUltraGroupMessages开发文档
modifyUltraGroupMessagemodifyUltraGroupMessage开发文档
updateUltraGroupMessageExpansionupdateUltraGroupMessageExpansion开发文档
removeUltraGroupMessageExpansionremoveUltraGroupMessageExpansion开发文档
recallUltraGroupMessagerecallUltraGroupMessage开发文档
getBatchRemoteUrtraGroupMessagesgetBatchRemoteUltraGroupMessages开发文档
setNotificationQuietHoursLevelchangeNotificationQuietHours开发文档
getNotificationQuietHoursLevelgetNotificationQuietHours开发文档
setConversationChannelNotificationLevelchangeConversationNotificationLevel开发文档
getConversationChannelNotificationLevelgetConversationNotificationLevel开发文档
getConversationNotificationLevelgetConversationNotificationLevel开发文档
setConversationNotificationLevelchangeConversationNotificationLevel开发文档
setConversationTypeNotificationLevelchangeConversationTypeNotificationLevel开发文档
getConversationTypeNotificationLevelgetConversationTypeNotificationLevel
setUltraGroupConversationDefaultNotificationLevelchangeUltraGroupDefaultNotificationLevel开发文档
getUltraGroupConversationDefaultNotificationLevelgetUltraGroupDefaultNotificationLevel开发文档
setUltraGroupConversationChannelDefaultNotificationLevelchangeUltraGroupChannelDefaultNotificationLevel开发文档
getUltraGroupConversationChannelDefaultNotificationLevelgetUltraGroupChannelDefaultNotificationLevel开发文档
getUltraGroupUnreadCountgetUltraGroupUnreadCount开发文档
getUltraGroupAllUnreadCountgetUltraGroupAllUnreadCount开发文档
getUltraGroupAllUnreadMentionedCountgetUltraGroupAllUnreadMentionedCount开发文档
旧版本回调新版本回调
onMessageBlockedonMessageBlocked
onConnectionStatusChangeonConnectionStatusChanged
messageExpansionDidUpdateonRemoteMessageExpansionUpdated
messageExpansionDidRemoveonRemoteMessageExpansionForKeyRemoved
onMessageSendonMessageSent
onMessageReceivedonMessageReceived
onMessageReceivedWrapperonMessageReceived
onJoinChatRoomonChatRoomJoined
onChatRoomResetonChatRoomStatusChanged
onChatRoomDestroyedonChatRoomStatusChanged
onQuitChatRoomonChatRoomLeft
chatRoomKVDidSynconChatRoomEntriesSynced
chatRoomKVDidUpdateonChatRoomEntriesChanged
chatRoomKVDidRemoveonChatRoomEntriesChanged
onReceiveReadReceiptonPrivateReadReceiptReceived
onMessageReceiptRequestonGroupMessageReadReceiptRequestReceived
onMessageReceiptResponseonGroupMessageReadReceiptResponseReceived
onTypingStatusChangedonTypingStatusChanged
onRecallMessageReceivedonRemoteMessageRecalled
onDatabaseOpenedonDatabaseOpened

部分功能的实现方案参考

接口功能实现方案
config在创建引擎时提供配置信息
getChatRoomInfo开发者服务端调用融云 Server API 进行查询,客户端根据服务端内容来处理
getConnectionStatus开发者可以根据链接状态变化全局进行处理
onUploadMediaProgress开发者在sendmediamessage 中可以直接处理
forwardMessageByStep直接调用 sendMessage 处理
addMessageDecoder参考 https://help.rongcloud.cn/t/topic/954
conversationDigest参考 https://help.rongcloud.cn/t/topic/954
onDataReceived参考 https://help.rongcloud.cn/t/topic/954
objectName 如何判断参考 https://help.rongcloud.cn/t/topic/956