Package io.rong.imlib
Class LibHandlerStub
-
- All Implemented Interfaces:
public class LibHandlerStub
-
-
Constructor Summary
Constructors Constructor Description LibHandlerStub(Context context, String appKey, String deviceId, RCConfiguration configuration, String soDir, int pingTimeout, boolean isBackupDb)
-
Method Summary
Modifier and Type Method Description voidinitAppendixModule()voidconnect(ConnectOption option, boolean isReconnect, boolean inForeground, int rsn, IConnectStringCallback callback)voiddisconnect(boolean isReceivePush)voidregisterMessageType(String className)voidregisterMessageTypes(List<String> classNameList)intgetTotalUnreadCount(String channelId, boolean containBlocked)intgetUnreadCountByConversation(Array<Conversation> conversations)intgetUnreadCount(String channelId, Array<int> types)intgetUnreadCountWithDND(String channelId, Array<int> types, boolean withDND)intgetUnreadCountById(int type, String id, String channelId)intgetMessageCount(int type, String id, String channelId)voidsetOnReceiveMessageListener(OnReceiveMessageListener listener)voidsetConnectionStatusListener(IConnectionStatusListener callback)voidinitIPCEnviroment(ConnectOption option, int status)MessagegetMessage(int messageId)MessageinsertSettingMessage(Message message)MessageinsertSettingMessageWithUid(Message message, String uid)voidsendMessage(Message message, String pushContent, String pushData, ISendMessageCallback callback)voidsendMessageOption(Message message, String pushContent, String pushData, SendMessageOption option, ISendMessageCallback callback)voidsendDirectionalMessage(Message message, String pushContent, String pushData, Array<String> userIds, ISendMessageCallback callback)voidsendDirectionalMessageOption(Message message, String pushContent, String pushData, Array<String> userIds, SendMessageOption option, ISendMessageCallback callback)voidsendMediaMessage(Message message, String pushContent, String pushData, ISendMediaMessageCallback sendMediaMessageCallback)voidsendMediaMessageOption(Message message, String pushContent, String pushData, SendMessageOption option, ISendMediaMessageCallback sendMediaMessageCallback)voidsendDirectionalMediaMessage(Message message, Array<String> userIds, String pushContent, String pushData, ISendMediaMessageCallback sendMediaMessageCallback)发送定向多媒体消息 List<Message>getNewestMessages(Conversation conversation, int count)List<Message>getOlderMessages(Conversation conversation, long flagId, int count)voidgetOlderMessagesOneWay(Conversation conversation, long flagId, int count, OnGetHistoryMessagesCallback callback)voidgetRemoteHistoryMessages(Conversation conversation, long dataTime, int count, IResultCallbackEx callback)voidgetRemoteHistoryMessagesOption(Conversation conversation, RemoteHistoryMsgOption remoteHistoryMsgOption, IResultCallbackEx callback)voidcleanRemoteHistoryMessages(Conversation conversation, long recordTime, IOperationCallback callback)voidcleanHistoryMessages(Conversation conversation, long recordTime, IOperationCallback callback)voidgetUserStatus(String userId, IGetUserStatusCallback callback)voidsetUserStatus(int status, ISetUserStatusCallback callback)voidsubscribeStatus(List<String> users, IIntegerCallback callback)voidsetSubscribeStatusListener(ISubscribeUserStatusCallback callback)voidsetPushSetting(int key, String value, ISetPushSettingCallback callback)StringgetPushSetting(int key)List<Message>getOlderMessagesByObjectName(Conversation conversation, String objectName, long flagId, int count, boolean flag)voidgetOlderMessagesByObjectNames(Conversation conversation, List<String> objectNames, long flagId, int count, boolean flag, IGetMessageWithProcessCallback callback)List<Message>getOlderMessagesByObjectNamesSync(Conversation conversation, List<String> objectNames, long timestamp, int count, boolean flag)booleandeleteMessage(Array<int> ids)voiddeleteMessages(int conversationType, String targetId, String channelId, Array<Message> messages, IOperationCallback callback)booleandeleteConversationMessage(int conversationType, String targetId, String channelId)booleanclearMessages(Conversation conversation)booleanclearMessagesUnreadStatus(Conversation conversation)booleansetMessageExtra(int messageId, String values)booleansetMessageReceivedStatus(int messageId, int status)booleansetMessageSentStatus(int messageId, int status)MessagegetMessageByUid(String uid)voidgetTopConversationList(Array<int> types, String channelId, int countPerBatch, IGetConversationListWithProcessCallback callback)List<Conversation>getConversationList()voidgetConversationListByBatch(String channelId, int countPerBatch, IGetConversationListWithProcessCallback callback)List<Conversation>getConversationListByType(Array<int> types)voidgetConversationListOfTypesByBatch(String channelId, Array<int> types, int countPerBatch, IGetConversationListWithProcessCallback callback)voidgetConversationListByPage(Array<int> types, long timeStamp, int count, String channelId, int countPerBatch, IGetConversationListWithProcessCallback callback)List<Conversation>getBlockedConversationList(Array<int> types, String channelId)ConversationgetConversation(int type, String targetId, String channelId)booleanremoveConversation(int typeValue, String targetId, String channelId)booleansaveConversationDraft(Conversation conversation, String content)StringgetConversationDraft(Conversation conversation)booleancleanConversationDraft(Conversation conversation)voidgetConversationNotificationStatus(int type, String targetId, String channelId, ILongCallback callback)voidsetConversationNotificationStatus(int type, String targetId, String channelId, int level, IOperationCallback callback)booleansetConversationTopStatus(int typeValue, String targetId, String channelId, boolean isTop, boolean needCreate)intgetConversationUnreadCount(Conversation conversation)booleanclearConversations(String channelId, Array<int> types)voidsetNotificationQuietHours(String startTime, int spanMinutes, int level, IOperationCallback callback)voidremoveNotificationQuietHours(IOperationCallback callback)voidgetNotificationQuietHours(IGetNotificationQuietHoursCallback callback)booleanupdateConversationInfo(int type, String targetId, String channelId, String title, String portrait)voidgetUnreadConversationListOfTypesByBatch(Array<int> types, int countPerBatch, IGetConversationListWithProcessCallback callback)voidsyncGroup(List<Group> groups, IOperationCallback callback)voidjoinGroup(String id, String name, IOperationCallback callback)voidquitGroup(String id, IOperationCallback callback)voiduploadMedia(Message message, IUploadCallback callback)voiddownloadMedia(Conversation conversation, int type, String mediaUrl, IDownloadMediaCallback callback)voiddownloadMediaMessage(Message message, IDownloadMediaMessageCallback callback)voiddownloadMediaFile(String uid, String fileUrl, String fileName, String path, IDownloadMediaFileCallback callback)voidcancelSendMediaMessage(Message message, IOperationCallback callback)voidcancelDownloadMediaMessage(Message message, IOperationCallback callback)voidpauseTransferMediaMessage(Message message, IOperationCallback callback)voidpauseTransferMediaFile(String tag, IOperationCallback callback)booleangetFileDownloadingStatus(String uid)voidgetDownloadInfo(String tag, IResultCallback callback)booleansupportResumeBrokenTransfer(String url)voidcancelAllDownloadMediaMessage(IOperationCallback callback)longgetDeltaTime()voidrecallMessage(String objectName, Array<byte> content, String pushContent, Message message, IOperationCallback callback)voidaddToBlacklist(String userId, IOperationCallback callback)voidremoveFromBlacklist(String userId, IOperationCallback callback)StringgetTextMessageDraft(Conversation conversation)booleansaveTextMessageDraft(Conversation conversation, String content)booleanclearTextMessageDraft(Conversation conversation)voidgetBlacklist(IStringCallback callback)voidgetBlacklistStatus(String userId, IIntegerCallback callback)voidgetPrivateDownloadToken(String fileName, IStringCallback callback)voidsetUserData(UserData userData, IOperationCallback callback)booleanupdateMessageReceiptStatus(String targetId, int categoryId, String channelId, long timestamp)booleanclearUnreadByReceipt(int conversationType, String targetId, String channelId, long timestamp)longgetSendTimeByMessageId(int messageId)voidgetVoIPKey(int engineType, String channelName, String extra, IStringCallback callback)StringgetVoIPCallInfo()booleanisGzipEnabled()StringgetCurrentUserId()StringgetNavPreferenceValue(String navPreferenceKey)voidrequestNav(String appKey, String token, boolean notify, int reason)voidaddNaviObserver(INavigationObserver observer)voidsetInitOption(InitOption initOption)booleansetMessageContent(int messageId, Array<byte> messageContent, String objectName)booleanupdateReadReceiptRequestInfo(String msgUId, String info)voidregisterCmdMsgType(String objName)voidregisterCmdMsgTypes(List<String> objNameList)voidregisterDeleteMessageType(List<String> objNames)List<Message>searchMessages(String targetId, int conversationType, String channelId, String keyword, int count, long timestamp)List<Message>searchMessagesByUser(String targetId, int conversationType, String channelId, String userId, int count, long timestamp)List<Message>searchMessagesByTimestamp(String targetId, int conversationType, String channelId, String keyword, long startTime, long endTime, int offset, int limit)List<SearchConversationResult>searchConversations(String keyword, Array<int> conversationTypes, Array<String> objName, String channelId)List<Message>getMatchedMessages(String targetId, int conversationType, String channelId, long timestamp, int before, int after)voidgetVendorToken(IStringCallback callback)voidwriteFwLog(int level, String type, String tag, String metaJson, long timestamp)longgetNaviCachedTime()StringgetOfflineMessageDuration()voidsetOfflineMessageDuration(String duration, ILongCallback callback)voidswitchAppKey(String appKey, String deviceId)MessagegetTheFirstUnreadMessage(int conversationType, String targetId, String channelId)booleansetMessageReadTime(long messageId, long timestamp)voidcancelSDKHeartBeat()voidsendPing()立即发送 ping,无论当前状态 voidsetUserPolicy(boolean enable)voidsetReconnectKickEnable(boolean enable)intgetVideoLimitTime()intgetGIFLimitSize()voidsetUserProfileListener(UserProfileSettingListener listener)voidsetConversationStatusListener(ConversationStatusListener listener)voidsetConversationListener(IConversationListener listener)voidinitHttpDns()StringgetRTCProfile()voidupdateVoIPCallInfo(String rtcProfile)voidsolveServerHosts(String server, ISolveServerHostsCallBack callback)voidsetRLogOtherProgressCallback(IRLogOtherProgressCallback callback)booleanisPhrasesEnabled()booleanisDnsEnabled()booleanisGROpened()voidsendRTCDirectionalMessage(Message message, String pushContent, String pushData, Array<String> userIds, SendMessageOption option, boolean isFilterBlackList, ISendMessageCallback callback)voidsetNaviContentUpdateListener(INaviContentUpdateCallBack callback)设置导航信息更新的回调。 此监听只在获取到导航信息时通知,时机包括首次连接时,缓存过期后再次连接时获取到导航信息时。 StringgetUploadLogConfigInfo()获取导航中关于定时上传日志的相关配置信息 voidnotifyAppBackgroundChanged(boolean isInBackground)通知应用前后台切换 voidnotifyAppNetworkChanged()通知应用网络切换 voidupdateMessageExpansion(Map expansion, String messageUId, IOperationCallback callback)voidremoveMessageExpansion(List<String> keyArray, String messageUId, IOperationCallback callback)voidremoveMessageAllExpansion(String messageUId, IOperationCallback callback)voidsetMessageExpansionListener(IMessageExpansionListener listener)voidSetRTCHeartbeatListener(IRTCHeartbeatListenerEx listener)voidSendRTCHeartbeat(Array<String> roomId, int timeout)MapdoMethod(String className, String methodKey, Map param)voidregisterModule(Map map)booleanbatchInsertMessage(List<Message> messages, boolean enableCheck)voidaddTag(TagInfo tagInfo, IOperationCallback callback)voidremoveTag(String tagId, IOperationCallback callback)voidupdateTag(TagInfo tagInfo, IOperationCallback callback)List<TagInfo>getTags()List<ConversationTagInfo>getTagsFromConversation(ConversationIdentifier conversationIdentifier)booleangetConversationTopStatusInTag(ConversationIdentifier conversationIdentifier, String tagId)voidaddConversationsToTag(String tagId, List<ConversationIdentifier> conversationIdentifierList, IOperationCallback callback)voidremoveConversationsFromTag(String tagId, List<ConversationIdentifier> conversationIdentifierList, IOperationCallback callback)voidremoveTagsFromConversation(ConversationIdentifier conversationIdentifier, List<String> tagIds, IOperationCallback callback)List<Conversation>getConversationsFromTagByPage(String tagId, long ts, int count)intgetUnreadCountByTag(String tagId, boolean containBlocked)voidsetConversationToTopInTag(String tagId, ConversationIdentifier conversationIdentifier, boolean isTop, IOperationCallback callback)intgetCachedReadReceiptVersion()voidsendReadReceiptMessage(String targetId, String channelId, Array<String> msgUId, ISendReadReceiptMessageCallback callback)voidgetMessageReadUserList(String groupId, String channelId, String msgUId, IGetMessageReaderCallback callback)voiduploadSDKVersion(String version, String appVersion)voidRTCSignaling(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, int timeout, IRTCSignalingCallback callback)intSendRTCSignaling(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, int timeout, IRTCSignalingCallback callback)intCancelRTCSignaling(Array<int> requestId)voidSetRTCRoomEventListener(IRTCRoomEventListener listener)booleangetTopStatus(String targetId, int conversationType, String channelId)intgetUnreadCountByObjectName(String targetId, int conversationType, Array<String> objectNames, String channelId)booleanclearMessagesUnreadStatusByTag(String tagId)booleanclearConversationsByTag(String tagId, boolean deleteMessage)voidgetPrivateMessageDeliverTime(String channelId, String uid, ILongCallback callback)voidgetGroupMessageDeliverList(String groupId, String channelId, String msgUId, IGetGroupMessageDeliverCallback callback)voidsetMessageDeliverListener(IMessageDeliverListener listener)longgetMessageDeliverTime(String msgUId)voidforceReconnect(IConnectStringCallback callback)intgetUltraGroupMentionCount(String targetId)voidsyncUltraGroupReadStatus(String targetId, String channelId, long timestamp, IOperationCallback callback)voidsendUltraGroupTypingStatus(String targetId, String channelId, int operateType, IOperationCallback callback)booleandeleteUltraGroupMessagesForAllChannel(String targetId, long timestamp)booleandeleteUltraGroupMessages(String targetId, String channelId, long timestamp)voiddeleteRemoteUltraGroupMessages(String targetId, String channelId, long timestamp, IOperationCallback callback)voidmodifyUltraGroupMessage(String uid, Array<byte> messageContent, List<String> searchableWord, IOperationCallback callback)voidgetConversationListForAllChannel(int conversationType, String targetId, int countPerBatch, IGetConversationListWithProcessCallback callback)voidsyncRcConfiguration(RCConfiguration configuration)TranslationInfogetTranslationInfo(int messageId, String language)voidsaveMessageTranslation(int message, String content, String targetLanguage)booleanisSupportTranslation()StringgetAiAddress()voidgetUltraGroupConversationListByBatch(int countPerBatch, IGetConversationListWithProcessCallback callback)voidupdateUltraGroupMessageExpansion(Map expansion, String messageUId, IOperationCallback callback)voidremoveUltraMessageExpansion(List<String> keyArray, String messageUId, IOperationCallback callback)voidgetBatchRemoteUltraGroupMessages(List<Message> msgList, IGetBatchRemoteUltraGroupMessageCallback callback)voidgetConversationChannelNotificationLevel(int type, String targetId, String channelId, ILongCallback callback)voidsetConversationNotificationLevel(int type, String targetId, int level, IOperationCallback callback)voidgetConversationNotificationLevel(int type, String targetId, ILongCallback callback)voidsetConversationTypeNotificationLevel(int type, int level, IOperationCallback callback)voidgetConversationTypeNotificationLevel(int type, ILongCallback callback)voidgetUltraGroupConversationDefaultNotificationLevel(String targetId, ILongCallback callback)voidgetUltraGroupConversationChannelDefaultNotificationLevel(String targetId, String channelId, ILongCallback callback)voidsetUltraGroupConversationDefaultNotificationLevel(String targetId, int level, IOperationCallback callback)voidsetUltraGroupConversationChannelDefaultNotificationLevel(String targetId, String channelId, int level, IOperationCallback callback)intgetUltraGroupUnreadCount(String targetId)intgetUltraGroupAllUnreadCount()intgetUltraGroupAllUnreadMentionedCount()voidgetConversationListWithAllChannel(Array<int> types, int countPerBatch, IGetConversationListWithProcessCallback callback)voidgetConversationListWithAllChannelByPage(Array<int> types, long ts, int count, int countPerBatch, IGetConversationListWithProcessCallback callback)List<Message>searchMessageForAllChannel(String targetId, int categoryId, String keyword, int count, long timestamp)List<Message>searchMessageByTimestampForAllChannel(String targetId, int categoryId, String keyword, long startTime, long endTime, int offset, int limit)List<SearchConversationResult>searchConversationForAllChannel(String keyword, Array<int> types, Array<String> objName)voidgetUltraGroupChannelList(String targetId, int channelType, int countPerBatch, IGetConversationListWithProcessCallback callback)voidsetRLogLevel(int level)intgetLevelUnreadCount(Array<int> types, Array<int> levels)intgetUnreadMentionedCount(Array<int> types, Array<int> levels)intgetUltraGroupUnreadCountByLevels(String targetId, Array<int> levels)intgetUltraGroupUnreadMentionedCount(String targetId, Array<int> levels)voidgetUnreadMentionedMessages(int conversationType, String targetId, String channelId, int count, boolean desc, int countPerBatch, IGetMessageWithProcessCallback callback)获取会话里未读的@消息。最多返回最近十条。 voidgetUltraGroupUnreadMentionedDigests(String targetId, String channelId, long sendTime, int count, IGetUltraGroupUnreadMentionedDigestsCallback callback)voidgetBatchLocalMessage(int type, String targetId, String channelId, List<String> messageUIDs, IGetMessageWithProcessCallback callback)voidsendGroupCallSignalInfo(String targetId, String key, String signalInfo, IGroupCallSignalCallBack callback)voidsetGroupCallSignalListener(IGroupCallSignalListener listener)voidsetIMProxy(RCIMProxy proxy)RCIMProxygetCurrentProxy()booleansetCheckDuplicateMessage(boolean enableCheck)voidsetUltraGroupEventListener(ReceiveUltraGroupEventListener listener)voidgetUltraGroupConversationUnreadInfoList(Array<String> targetIds, int countPerBatch, IGetConversationUnreadInfoListWithProcessCallback callback)-
-
Method Detail
-
initAppendixModule
void initAppendixModule()
-
connect
void connect(ConnectOption option, boolean isReconnect, boolean inForeground, int rsn, IConnectStringCallback callback)
-
disconnect
void disconnect(boolean isReceivePush)
-
registerMessageType
void registerMessageType(String className)
-
registerMessageTypes
void registerMessageTypes(List<String> classNameList)
-
getTotalUnreadCount
int getTotalUnreadCount(String channelId, boolean containBlocked)
-
getUnreadCountByConversation
int getUnreadCountByConversation(Array<Conversation> conversations)
-
getUnreadCount
int getUnreadCount(String channelId, Array<int> types)
-
getUnreadCountWithDND
int getUnreadCountWithDND(String channelId, Array<int> types, boolean withDND)
-
getUnreadCountById
int getUnreadCountById(int type, String id, String channelId)
-
getMessageCount
int getMessageCount(int type, String id, String channelId)
-
setOnReceiveMessageListener
void setOnReceiveMessageListener(OnReceiveMessageListener listener)
-
setConnectionStatusListener
void setConnectionStatusListener(IConnectionStatusListener callback)
-
initIPCEnviroment
void initIPCEnviroment(ConnectOption option, int status)
-
getMessage
Message getMessage(int messageId)
-
insertSettingMessage
Message insertSettingMessage(Message message)
-
insertSettingMessageWithUid
Message insertSettingMessageWithUid(Message message, String uid)
-
sendMessage
void sendMessage(Message message, String pushContent, String pushData, ISendMessageCallback callback)
-
sendMessageOption
void sendMessageOption(Message message, String pushContent, String pushData, SendMessageOption option, ISendMessageCallback callback)
-
sendDirectionalMessage
void sendDirectionalMessage(Message message, String pushContent, String pushData, Array<String> userIds, ISendMessageCallback callback)
-
sendDirectionalMessageOption
void sendDirectionalMessageOption(Message message, String pushContent, String pushData, Array<String> userIds, SendMessageOption option, ISendMessageCallback callback)
-
sendMediaMessage
void sendMediaMessage(Message message, String pushContent, String pushData, ISendMediaMessageCallback sendMediaMessageCallback)
-
sendMediaMessageOption
void sendMediaMessageOption(Message message, String pushContent, String pushData, SendMessageOption option, ISendMediaMessageCallback sendMediaMessageCallback)
-
sendDirectionalMediaMessage
void sendDirectionalMediaMessage(Message message, Array<String> userIds, String pushContent, String pushData, ISendMediaMessageCallback sendMediaMessageCallback)
发送定向多媒体消息
- Parameters:
message- 消息实体userIds- 接收者 Id 数组pushContent- 当下发 push 消息时,在通知栏里会显示这个字段。 如果发送的是自定义消息,该字段必须填写,否则无法收到 push 消息。 如果发送 sdk 中默认的消息类型,例如 RC:TxtMsg, RC:VcMsg, RC:ImgMsg,则不需要填写,默认已经指定。pushData- push 附加信息。如果设置该字段,用户在收到 push 消息时,能通过 getPushData 方法获取。sendMediaMessageCallback- 回调 @see NativeClient.ISendMediaMessageCallback
-
getNewestMessages
List<Message> getNewestMessages(Conversation conversation, int count)
-
getOlderMessages
List<Message> getOlderMessages(Conversation conversation, long flagId, int count)
-
getOlderMessagesOneWay
void getOlderMessagesOneWay(Conversation conversation, long flagId, int count, OnGetHistoryMessagesCallback callback)
-
getRemoteHistoryMessages
void getRemoteHistoryMessages(Conversation conversation, long dataTime, int count, IResultCallbackEx callback)
-
getRemoteHistoryMessagesOption
void getRemoteHistoryMessagesOption(Conversation conversation, RemoteHistoryMsgOption remoteHistoryMsgOption, IResultCallbackEx callback)
-
cleanRemoteHistoryMessages
void cleanRemoteHistoryMessages(Conversation conversation, long recordTime, IOperationCallback callback)
-
cleanHistoryMessages
void cleanHistoryMessages(Conversation conversation, long recordTime, IOperationCallback callback)
-
getUserStatus
void getUserStatus(String userId, IGetUserStatusCallback callback)
-
setUserStatus
void setUserStatus(int status, ISetUserStatusCallback callback)
-
subscribeStatus
void subscribeStatus(List<String> users, IIntegerCallback callback)
-
setSubscribeStatusListener
void setSubscribeStatusListener(ISubscribeUserStatusCallback callback)
-
setPushSetting
void setPushSetting(int key, String value, ISetPushSettingCallback callback)
-
getPushSetting
String getPushSetting(int key)
-
getOlderMessagesByObjectName
List<Message> getOlderMessagesByObjectName(Conversation conversation, String objectName, long flagId, int count, boolean flag)
-
getOlderMessagesByObjectNames
void getOlderMessagesByObjectNames(Conversation conversation, List<String> objectNames, long flagId, int count, boolean flag, IGetMessageWithProcessCallback callback)
-
getOlderMessagesByObjectNamesSync
List<Message> getOlderMessagesByObjectNamesSync(Conversation conversation, List<String> objectNames, long timestamp, int count, boolean flag)
-
deleteMessage
boolean deleteMessage(Array<int> ids)
-
deleteMessages
void deleteMessages(int conversationType, String targetId, String channelId, Array<Message> messages, IOperationCallback callback)
-
deleteConversationMessage
boolean deleteConversationMessage(int conversationType, String targetId, String channelId)
-
clearMessages
boolean clearMessages(Conversation conversation)
-
clearMessagesUnreadStatus
boolean clearMessagesUnreadStatus(Conversation conversation)
-
setMessageExtra
boolean setMessageExtra(int messageId, String values)
-
setMessageReceivedStatus
boolean setMessageReceivedStatus(int messageId, int status)
-
setMessageSentStatus
boolean setMessageSentStatus(int messageId, int status)
-
getMessageByUid
Message getMessageByUid(String uid)
-
getTopConversationList
void getTopConversationList(Array<int> types, String channelId, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
getConversationList
List<Conversation> getConversationList()
-
getConversationListByBatch
void getConversationListByBatch(String channelId, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
getConversationListByType
List<Conversation> getConversationListByType(Array<int> types)
-
getConversationListOfTypesByBatch
void getConversationListOfTypesByBatch(String channelId, Array<int> types, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
getConversationListByPage
void getConversationListByPage(Array<int> types, long timeStamp, int count, String channelId, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
getBlockedConversationList
List<Conversation> getBlockedConversationList(Array<int> types, String channelId)
-
getConversation
Conversation getConversation(int type, String targetId, String channelId)
-
removeConversation
boolean removeConversation(int typeValue, String targetId, String channelId)
-
saveConversationDraft
boolean saveConversationDraft(Conversation conversation, String content)
-
getConversationDraft
String getConversationDraft(Conversation conversation)
-
cleanConversationDraft
boolean cleanConversationDraft(Conversation conversation)
-
getConversationNotificationStatus
void getConversationNotificationStatus(int type, String targetId, String channelId, ILongCallback callback)
-
setConversationNotificationStatus
void setConversationNotificationStatus(int type, String targetId, String channelId, int level, IOperationCallback callback)
-
setConversationTopStatus
boolean setConversationTopStatus(int typeValue, String targetId, String channelId, boolean isTop, boolean needCreate)
-
getConversationUnreadCount
int getConversationUnreadCount(Conversation conversation)
-
clearConversations
boolean clearConversations(String channelId, Array<int> types)
-
setNotificationQuietHours
void setNotificationQuietHours(String startTime, int spanMinutes, int level, IOperationCallback callback)
-
removeNotificationQuietHours
void removeNotificationQuietHours(IOperationCallback callback)
-
getNotificationQuietHours
void getNotificationQuietHours(IGetNotificationQuietHoursCallback callback)
-
updateConversationInfo
boolean updateConversationInfo(int type, String targetId, String channelId, String title, String portrait)
-
getUnreadConversationListOfTypesByBatch
void getUnreadConversationListOfTypesByBatch(Array<int> types, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
syncGroup
void syncGroup(List<Group> groups, IOperationCallback callback)
-
joinGroup
void joinGroup(String id, String name, IOperationCallback callback)
-
quitGroup
void quitGroup(String id, IOperationCallback callback)
-
uploadMedia
void uploadMedia(Message message, IUploadCallback callback)
-
downloadMedia
void downloadMedia(Conversation conversation, int type, String mediaUrl, IDownloadMediaCallback callback)
-
downloadMediaMessage
void downloadMediaMessage(Message message, IDownloadMediaMessageCallback callback)
-
downloadMediaFile
void downloadMediaFile(String uid, String fileUrl, String fileName, String path, IDownloadMediaFileCallback callback)
-
cancelSendMediaMessage
void cancelSendMediaMessage(Message message, IOperationCallback callback)
-
cancelDownloadMediaMessage
void cancelDownloadMediaMessage(Message message, IOperationCallback callback)
-
pauseTransferMediaMessage
void pauseTransferMediaMessage(Message message, IOperationCallback callback)
-
pauseTransferMediaFile
void pauseTransferMediaFile(String tag, IOperationCallback callback)
-
getFileDownloadingStatus
boolean getFileDownloadingStatus(String uid)
-
getDownloadInfo
void getDownloadInfo(String tag, IResultCallback callback)
-
supportResumeBrokenTransfer
boolean supportResumeBrokenTransfer(String url)
-
cancelAllDownloadMediaMessage
void cancelAllDownloadMediaMessage(IOperationCallback callback)
-
getDeltaTime
long getDeltaTime()
-
recallMessage
void recallMessage(String objectName, Array<byte> content, String pushContent, Message message, IOperationCallback callback)
-
addToBlacklist
void addToBlacklist(String userId, IOperationCallback callback)
-
removeFromBlacklist
void removeFromBlacklist(String userId, IOperationCallback callback)
-
getTextMessageDraft
String getTextMessageDraft(Conversation conversation)
-
saveTextMessageDraft
boolean saveTextMessageDraft(Conversation conversation, String content)
-
clearTextMessageDraft
boolean clearTextMessageDraft(Conversation conversation)
-
getBlacklist
void getBlacklist(IStringCallback callback)
-
getBlacklistStatus
void getBlacklistStatus(String userId, IIntegerCallback callback)
-
getPrivateDownloadToken
void getPrivateDownloadToken(String fileName, IStringCallback callback)
-
setUserData
void setUserData(UserData userData, IOperationCallback callback)
-
updateMessageReceiptStatus
boolean updateMessageReceiptStatus(String targetId, int categoryId, String channelId, long timestamp)
-
clearUnreadByReceipt
boolean clearUnreadByReceipt(int conversationType, String targetId, String channelId, long timestamp)
-
getSendTimeByMessageId
long getSendTimeByMessageId(int messageId)
-
getVoIPKey
void getVoIPKey(int engineType, String channelName, String extra, IStringCallback callback)
-
getVoIPCallInfo
String getVoIPCallInfo()
-
isGzipEnabled
boolean isGzipEnabled()
-
getCurrentUserId
String getCurrentUserId()
-
getNavPreferenceValue
String getNavPreferenceValue(String navPreferenceKey)
-
requestNav
void requestNav(String appKey, String token, boolean notify, int reason)
-
addNaviObserver
void addNaviObserver(INavigationObserver observer)
-
setInitOption
void setInitOption(InitOption initOption)
-
setMessageContent
boolean setMessageContent(int messageId, Array<byte> messageContent, String objectName)
-
updateReadReceiptRequestInfo
boolean updateReadReceiptRequestInfo(String msgUId, String info)
-
registerCmdMsgType
void registerCmdMsgType(String objName)
-
registerCmdMsgTypes
void registerCmdMsgTypes(List<String> objNameList)
-
registerDeleteMessageType
void registerDeleteMessageType(List<String> objNames)
-
searchMessages
List<Message> searchMessages(String targetId, int conversationType, String channelId, String keyword, int count, long timestamp)
-
searchMessagesByUser
List<Message> searchMessagesByUser(String targetId, int conversationType, String channelId, String userId, int count, long timestamp)
-
searchMessagesByTimestamp
List<Message> searchMessagesByTimestamp(String targetId, int conversationType, String channelId, String keyword, long startTime, long endTime, int offset, int limit)
-
searchConversations
List<SearchConversationResult> searchConversations(String keyword, Array<int> conversationTypes, Array<String> objName, String channelId)
-
getMatchedMessages
List<Message> getMatchedMessages(String targetId, int conversationType, String channelId, long timestamp, int before, int after)
-
getVendorToken
void getVendorToken(IStringCallback callback)
-
writeFwLog
void writeFwLog(int level, String type, String tag, String metaJson, long timestamp)
-
getNaviCachedTime
long getNaviCachedTime()
-
getOfflineMessageDuration
String getOfflineMessageDuration()
-
setOfflineMessageDuration
void setOfflineMessageDuration(String duration, ILongCallback callback)
-
switchAppKey
void switchAppKey(String appKey, String deviceId)
-
getTheFirstUnreadMessage
Message getTheFirstUnreadMessage(int conversationType, String targetId, String channelId)
-
setMessageReadTime
boolean setMessageReadTime(long messageId, long timestamp)
-
cancelSDKHeartBeat
void cancelSDKHeartBeat()
-
sendPing
void sendPing()
立即发送 ping,无论当前状态
-
setUserPolicy
void setUserPolicy(boolean enable)
-
setReconnectKickEnable
void setReconnectKickEnable(boolean enable)
-
getVideoLimitTime
int getVideoLimitTime()
-
getGIFLimitSize
int getGIFLimitSize()
-
setUserProfileListener
void setUserProfileListener(UserProfileSettingListener listener)
-
setConversationStatusListener
void setConversationStatusListener(ConversationStatusListener listener)
-
setConversationListener
void setConversationListener(IConversationListener listener)
-
initHttpDns
void initHttpDns()
-
getRTCProfile
String getRTCProfile()
-
updateVoIPCallInfo
void updateVoIPCallInfo(String rtcProfile)
-
solveServerHosts
void solveServerHosts(String server, ISolveServerHostsCallBack callback)
-
setRLogOtherProgressCallback
void setRLogOtherProgressCallback(IRLogOtherProgressCallback callback)
-
isPhrasesEnabled
boolean isPhrasesEnabled()
-
isDnsEnabled
boolean isDnsEnabled()
-
isGROpened
boolean isGROpened()
-
sendRTCDirectionalMessage
void sendRTCDirectionalMessage(Message message, String pushContent, String pushData, Array<String> userIds, SendMessageOption option, boolean isFilterBlackList, ISendMessageCallback callback)
-
setNaviContentUpdateListener
void setNaviContentUpdateListener(INaviContentUpdateCallBack callback)
设置导航信息更新的回调。
此监听只在获取到导航信息时通知,时机包括首次连接时,缓存过期后再次连接时获取到导航信息时。
-
getUploadLogConfigInfo
String getUploadLogConfigInfo()
获取导航中关于定时上传日志的相关配置信息
- Returns:
定时上传日志配置 json 字符串
-
notifyAppBackgroundChanged
void notifyAppBackgroundChanged(boolean isInBackground)
通知应用前后台切换
-
notifyAppNetworkChanged
void notifyAppNetworkChanged()
通知应用网络切换
-
updateMessageExpansion
void updateMessageExpansion(Map expansion, String messageUId, IOperationCallback callback)
-
removeMessageExpansion
void removeMessageExpansion(List<String> keyArray, String messageUId, IOperationCallback callback)
-
removeMessageAllExpansion
void removeMessageAllExpansion(String messageUId, IOperationCallback callback)
-
setMessageExpansionListener
void setMessageExpansionListener(IMessageExpansionListener listener)
-
SetRTCHeartbeatListener
void SetRTCHeartbeatListener(IRTCHeartbeatListenerEx listener)
-
SendRTCHeartbeat
void SendRTCHeartbeat(Array<String> roomId, int timeout)
-
doMethod
Map doMethod(String className, String methodKey, Map param)
-
registerModule
void registerModule(Map map)
-
batchInsertMessage
boolean batchInsertMessage(List<Message> messages, boolean enableCheck)
-
addTag
void addTag(TagInfo tagInfo, IOperationCallback callback)
-
removeTag
void removeTag(String tagId, IOperationCallback callback)
-
updateTag
void updateTag(TagInfo tagInfo, IOperationCallback callback)
-
getTags
List<TagInfo> getTags()
-
getTagsFromConversation
List<ConversationTagInfo> getTagsFromConversation(ConversationIdentifier conversationIdentifier)
-
getConversationTopStatusInTag
boolean getConversationTopStatusInTag(ConversationIdentifier conversationIdentifier, String tagId)
-
addConversationsToTag
void addConversationsToTag(String tagId, List<ConversationIdentifier> conversationIdentifierList, IOperationCallback callback)
-
removeConversationsFromTag
void removeConversationsFromTag(String tagId, List<ConversationIdentifier> conversationIdentifierList, IOperationCallback callback)
-
removeTagsFromConversation
void removeTagsFromConversation(ConversationIdentifier conversationIdentifier, List<String> tagIds, IOperationCallback callback)
-
getConversationsFromTagByPage
List<Conversation> getConversationsFromTagByPage(String tagId, long ts, int count)
-
getUnreadCountByTag
int getUnreadCountByTag(String tagId, boolean containBlocked)
-
setConversationToTopInTag
void setConversationToTopInTag(String tagId, ConversationIdentifier conversationIdentifier, boolean isTop, IOperationCallback callback)
-
getCachedReadReceiptVersion
int getCachedReadReceiptVersion()
-
sendReadReceiptMessage
void sendReadReceiptMessage(String targetId, String channelId, Array<String> msgUId, ISendReadReceiptMessageCallback callback)
-
getMessageReadUserList
void getMessageReadUserList(String groupId, String channelId, String msgUId, IGetMessageReaderCallback callback)
-
uploadSDKVersion
void uploadSDKVersion(String version, String appVersion)
-
RTCSignaling
void RTCSignaling(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, int timeout, IRTCSignalingCallback callback)
-
SendRTCSignaling
int SendRTCSignaling(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, int timeout, IRTCSignalingCallback callback)
-
CancelRTCSignaling
int CancelRTCSignaling(Array<int> requestId)
-
SetRTCRoomEventListener
void SetRTCRoomEventListener(IRTCRoomEventListener listener)
-
getTopStatus
boolean getTopStatus(String targetId, int conversationType, String channelId)
-
getUnreadCountByObjectName
int getUnreadCountByObjectName(String targetId, int conversationType, Array<String> objectNames, String channelId)
-
clearMessagesUnreadStatusByTag
boolean clearMessagesUnreadStatusByTag(String tagId)
-
clearConversationsByTag
boolean clearConversationsByTag(String tagId, boolean deleteMessage)
-
getPrivateMessageDeliverTime
void getPrivateMessageDeliverTime(String channelId, String uid, ILongCallback callback)
-
getGroupMessageDeliverList
void getGroupMessageDeliverList(String groupId, String channelId, String msgUId, IGetGroupMessageDeliverCallback callback)
-
setMessageDeliverListener
void setMessageDeliverListener(IMessageDeliverListener listener)
-
getMessageDeliverTime
long getMessageDeliverTime(String msgUId)
-
forceReconnect
void forceReconnect(IConnectStringCallback callback)
-
getUltraGroupMentionCount
int getUltraGroupMentionCount(String targetId)
-
syncUltraGroupReadStatus
void syncUltraGroupReadStatus(String targetId, String channelId, long timestamp, IOperationCallback callback)
-
sendUltraGroupTypingStatus
void sendUltraGroupTypingStatus(String targetId, String channelId, int operateType, IOperationCallback callback)
-
deleteUltraGroupMessagesForAllChannel
boolean deleteUltraGroupMessagesForAllChannel(String targetId, long timestamp)
-
deleteUltraGroupMessages
boolean deleteUltraGroupMessages(String targetId, String channelId, long timestamp)
-
deleteRemoteUltraGroupMessages
void deleteRemoteUltraGroupMessages(String targetId, String channelId, long timestamp, IOperationCallback callback)
-
modifyUltraGroupMessage
void modifyUltraGroupMessage(String uid, Array<byte> messageContent, List<String> searchableWord, IOperationCallback callback)
-
getConversationListForAllChannel
void getConversationListForAllChannel(int conversationType, String targetId, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
syncRcConfiguration
void syncRcConfiguration(RCConfiguration configuration)
-
getTranslationInfo
TranslationInfo getTranslationInfo(int messageId, String language)
-
saveMessageTranslation
void saveMessageTranslation(int message, String content, String targetLanguage)
-
isSupportTranslation
boolean isSupportTranslation()
-
getAiAddress
String getAiAddress()
-
getUltraGroupConversationListByBatch
void getUltraGroupConversationListByBatch(int countPerBatch, IGetConversationListWithProcessCallback callback)
-
updateUltraGroupMessageExpansion
void updateUltraGroupMessageExpansion(Map expansion, String messageUId, IOperationCallback callback)
-
removeUltraMessageExpansion
void removeUltraMessageExpansion(List<String> keyArray, String messageUId, IOperationCallback callback)
-
getBatchRemoteUltraGroupMessages
void getBatchRemoteUltraGroupMessages(List<Message> msgList, IGetBatchRemoteUltraGroupMessageCallback callback)
-
getConversationChannelNotificationLevel
void getConversationChannelNotificationLevel(int type, String targetId, String channelId, ILongCallback callback)
-
setConversationNotificationLevel
void setConversationNotificationLevel(int type, String targetId, int level, IOperationCallback callback)
-
getConversationNotificationLevel
void getConversationNotificationLevel(int type, String targetId, ILongCallback callback)
-
setConversationTypeNotificationLevel
void setConversationTypeNotificationLevel(int type, int level, IOperationCallback callback)
-
getConversationTypeNotificationLevel
void getConversationTypeNotificationLevel(int type, ILongCallback callback)
-
getUltraGroupConversationDefaultNotificationLevel
void getUltraGroupConversationDefaultNotificationLevel(String targetId, ILongCallback callback)
-
getUltraGroupConversationChannelDefaultNotificationLevel
void getUltraGroupConversationChannelDefaultNotificationLevel(String targetId, String channelId, ILongCallback callback)
-
setUltraGroupConversationDefaultNotificationLevel
void setUltraGroupConversationDefaultNotificationLevel(String targetId, int level, IOperationCallback callback)
-
setUltraGroupConversationChannelDefaultNotificationLevel
void setUltraGroupConversationChannelDefaultNotificationLevel(String targetId, String channelId, int level, IOperationCallback callback)
-
getUltraGroupUnreadCount
int getUltraGroupUnreadCount(String targetId)
-
getUltraGroupAllUnreadCount
int getUltraGroupAllUnreadCount()
-
getUltraGroupAllUnreadMentionedCount
int getUltraGroupAllUnreadMentionedCount()
-
getConversationListWithAllChannel
void getConversationListWithAllChannel(Array<int> types, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
getConversationListWithAllChannelByPage
void getConversationListWithAllChannelByPage(Array<int> types, long ts, int count, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
searchMessageForAllChannel
List<Message> searchMessageForAllChannel(String targetId, int categoryId, String keyword, int count, long timestamp)
-
searchMessageByTimestampForAllChannel
List<Message> searchMessageByTimestampForAllChannel(String targetId, int categoryId, String keyword, long startTime, long endTime, int offset, int limit)
-
searchConversationForAllChannel
List<SearchConversationResult> searchConversationForAllChannel(String keyword, Array<int> types, Array<String> objName)
-
getUltraGroupChannelList
void getUltraGroupChannelList(String targetId, int channelType, int countPerBatch, IGetConversationListWithProcessCallback callback)
-
setRLogLevel
void setRLogLevel(int level)
-
getLevelUnreadCount
int getLevelUnreadCount(Array<int> types, Array<int> levels)
-
getUnreadMentionedCount
int getUnreadMentionedCount(Array<int> types, Array<int> levels)
-
getUltraGroupUnreadCountByLevels
int getUltraGroupUnreadCountByLevels(String targetId, Array<int> levels)
-
getUltraGroupUnreadMentionedCount
int getUltraGroupUnreadMentionedCount(String targetId, Array<int> levels)
-
getUnreadMentionedMessages
void getUnreadMentionedMessages(int conversationType, String targetId, String channelId, int count, boolean desc, int countPerBatch, IGetMessageWithProcessCallback callback)
获取会话里未读的@消息。最多返回最近十条。
-
getUltraGroupUnreadMentionedDigests
void getUltraGroupUnreadMentionedDigests(String targetId, String channelId, long sendTime, int count, IGetUltraGroupUnreadMentionedDigestsCallback callback)
-
getBatchLocalMessage
void getBatchLocalMessage(int type, String targetId, String channelId, List<String> messageUIDs, IGetMessageWithProcessCallback callback)
-
sendGroupCallSignalInfo
void sendGroupCallSignalInfo(String targetId, String key, String signalInfo, IGroupCallSignalCallBack callback)
-
setGroupCallSignalListener
void setGroupCallSignalListener(IGroupCallSignalListener listener)
-
setIMProxy
void setIMProxy(RCIMProxy proxy)
-
getCurrentProxy
RCIMProxy getCurrentProxy()
-
setCheckDuplicateMessage
boolean setCheckDuplicateMessage(boolean enableCheck)
-
setUltraGroupEventListener
void setUltraGroupEventListener(ReceiveUltraGroupEventListener listener)
-
getUltraGroupConversationUnreadInfoList
void getUltraGroupConversationUnreadInfoList(Array<String> targetIds, int countPerBatch, IGetConversationUnreadInfoListWithProcessCallback callback)
-
-
-
-