Package io.rong.imlib

Class LibHandlerStub

    • Constructor Detail

      • LibHandlerStub

        LibHandlerStub(Context context, String appKey, String deviceId, RCConfiguration configuration, String soDir, int pingTimeout, boolean isBackupDb)
    • Method Detail

      • connect

         void connect(ConnectOption option, boolean isReconnect, boolean inForeground, int rsn, IConnectStringCallback callback)
      • disconnect

         void disconnect(boolean isReceivePush, IOperationCallback callback)
      • getTotalUnreadCount

         void getTotalUnreadCount(String channelId, boolean containBlocked, IIntegerCallback callback)
      • getUnreadCount

         void getUnreadCount(String channelId, Array<int> types, IIntegerCallback callback)
      • getUnreadCountWithDND

         void getUnreadCountWithDND(String channelId, Array<int> types, boolean withDND, IIntegerCallback callback)
      • getUnreadCountById

         void getUnreadCountById(int type, String id, String channelId, IIntegerCallback callback)
      • getMessageCount

         void getMessageCount(int type, String id, String channelId, IIntegerCallback callback)
      • getMessage

         void getMessage(int messageId, IResultCallback 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

         void getNewestMessages(Conversation conversation, int count, IProgressResultCallback callback)
      • getOlderMessages

         void getOlderMessages(Conversation conversation, long flagId, int count, IProgressResultCallback 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)
      • setPushSetting

         void setPushSetting(int key, String value, IOperationCallback callback)
      • getPushSetting

         void getPushSetting(int key, IStringCallback callback)
      • getOlderMessagesByObjectName

         void getOlderMessagesByObjectName(Conversation conversation, String objectName, long flagId, int count, boolean flag, IProgressResultCallback callback)
      • getOlderMessagesByObjectNames

         void getOlderMessagesByObjectNames(Conversation conversation, List<String> objectNames, long flagId, int count, boolean flag, IProgressResultCallback callback)
      • getMessages

         void getMessages(Conversation conversation, long timestamp, int count, boolean flag, IGetMessageWithProcessCallback callback)
      • getOlderMessagesByObjectNamesSync

         void getOlderMessagesByObjectNamesSync(Conversation conversation, List<String> objectNames, long timestamp, int count, boolean flag, IProgressResultCallback callback)
      • deleteMessages

         void deleteMessages(int conversationType, String targetId, String channelId, Array<Message> messages, IOperationCallback callback)
      • deleteConversationMessage

         void deleteConversationMessage(int conversationType, String targetId, String channelId, IBooleanCallback callback)
      • clearMessages

         void clearMessages(Conversation conversation, IBooleanCallback callback)
      • clearMessagesByBatch

         void clearMessagesByBatch(List<ClearMessageOption> clearMessageOptionList, IBooleanCallback callback)
      • clearRemoteMessagesByBatch

         void clearRemoteMessagesByBatch(List<ClearMessageOption> clearMessageOptionList, boolean isDeleteLocal, IOperationCallback callback)
      • setMessageExtra

         void setMessageExtra(int messageId, String values, IBooleanCallback callback)
      • setMessageSentStatus

         void setMessageSentStatus(int messageId, int status, IBooleanCallback callback)
      • getTopConversationList

         void getTopConversationList(Array<int> types, String channelId, int countPerBatch, IProgressResultCallback callback)
      • getConversationListByBatch

         void getConversationListByBatch(String channelId, int countPerBatch, IProgressResultCallback callback)
      • getConversationListByPage

         void getConversationListByPage(Array<int> types, long timeStamp, int count, String channelId, boolean topPriority, int countPerBatch, IProgressResultCallback callback)
      • getConversation

         void getConversation(int type, String targetId, String channelId, IResultCallback callback)
      • getConversations

         void getConversations(List<ConversationIdentifier> conversationIdentifiers, IProgressResultCallback callback)
      • removeConversation

         void removeConversation(int typeValue, String targetId, String channelId, IBooleanCallback callback)
      • removeConversations

         void removeConversations(List<ConversationIdentifier> conversationIdentifierList, IBooleanCallback callback)
      • setConversationTopStatus

         void setConversationTopStatus(int typeValue, String targetId, String channelId, boolean isTop, boolean needCreate, boolean needUpdateTime, IBooleanCallback callback)
      • setConversationsTopStatus

         void setConversationsTopStatus(List<ConversationIdentifier> conversationIdentifierList, boolean isTop, boolean needCreate, IBooleanCallback callback)
      • setNotificationQuietHours

         void setNotificationQuietHours(String startTime, int spanMinutes, int level, IOperationCallback callback)
      • updateConversationInfo

         void updateConversationInfo(int type, String targetId, String channelId, String title, String portrait, IBooleanCallback 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)
      • getDownloadInfo

         void getDownloadInfo(String tag, IResultCallback callback)
      • recallMessage

         void recallMessage(String objectName, Array<byte> content, String pushContent, Message message, IOperationCallback callback)
      • addToBlacklist

         void addToBlacklist(String userId, IOperationCallback callback)
      • getTextMessageDraft

         void getTextMessageDraft(Conversation conversation, IStringCallback callback)
      • saveTextMessageDraft

         void saveTextMessageDraft(Conversation conversation, String content, IBooleanCallback callback)
      • clearTextMessageDraft

         void clearTextMessageDraft(Conversation conversation, IBooleanCallback callback)
      • updateMessageReceiptStatus

         void updateMessageReceiptStatus(String targetId, int categoryId, String channelId, long timestamp, IBooleanCallback callback)
      • clearUnreadByReceipt

         void clearUnreadByReceipt(int conversationType, String targetId, String channelId, long timestamp, IBooleanCallback callback)
      • getVoIPKey

         void getVoIPKey(int engineType, String channelName, String extra, IStringCallback callback)
      • requestNav

         void requestNav(String appKey, String token, boolean notify, int reason)
      • setMessageContent

         boolean setMessageContent(int messageId, Array<byte> messageContent, String objectName)
      • searchMessages

         void searchMessages(String targetId, int conversationType, String channelId, String keyword, int count, long timestamp, IProgressResultCallback callback)
      • searchMessagesByUser

         void searchMessagesByUser(String targetId, int conversationType, String channelId, String userId, int count, long timestamp, IProgressResultCallback callback)
      • searchMessagesForChannels

         void searchMessagesForChannels(String targetId, int conversationType, Array<String> channelId, String keyword, int limit, long timestamp, IProgressResultCallback callback)
      • searchMessagesByUserForChannels

         void searchMessagesByUserForChannels(String targetId, int conversationType, Array<String> channelIds, String userId, int limit, long timestamp, IProgressResultCallback callback)
      • searchMessagesByUserForAllChannel

         void searchMessagesByUserForAllChannel(String targetId, int conversationType, String userId, int limit, long timestamp, IProgressResultCallback callback)
      • searchMessagesByTimestamp

         void searchMessagesByTimestamp(String targetId, int conversationType, String channelId, String keyword, long startTime, long endTime, int offset, int limit, IProgressResultCallback callback)
      • searchMessagesByContent

         List<Message> searchMessagesByContent(String targetId, int conversationType, String channelId, String keyword, Array<String> objectNameList, int limit, long startTime)
      • searchConversations

         void searchConversations(String keyword, Array<int> conversationTypes, Array<String> objName, String channelId, IProgressResultCallback callback)
      • getMatchedMessages

         void getMatchedMessages(String targetId, int conversationType, String channelId, long timestamp, int before, int after, IProgressResultCallback callback)
      • writeFwLog

         void writeFwLog(int level, int type, String tag, String metaJson, long timestamp, boolean writeDb)
      • switchAppKey

         void switchAppKey(String appKey, String deviceId)
      • getTheFirstUnreadMessage

         void getTheFirstUnreadMessage(int conversationType, String targetId, String channelId, IResultCallback callback)
      • setMessageReadTime

         void setMessageReadTime(long messageId, long timestamp, IBooleanCallback callback)
      • sendPing

         void sendPing()

        立即发送 ping,无论当前状态

      • solveServerHosts

         void solveServerHosts(String server, ISolveServerHostsCallBack callback)
      • sendRTCDirectionalMessage

         void sendRTCDirectionalMessage(Message message, String pushContent, String pushData, Array<String> userIds, SendMessageOption option, boolean isFilterBlackList, ISendMessageCallback callback)
      • updateMessageExpansion

         void updateMessageExpansion(Map expansion, String messageUId, IOperationCallback callback)
      • removeMessageExpansion

         void removeMessageExpansion(List<String> keyArray, String messageUId, IOperationCallback callback)
      • doMethod

         Map doMethod(String className, String methodKey, Map param)
      • 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

         void getTags(IProgressResultCallback callback)
      • getTagsFromConversation

         void getTagsFromConversation(ConversationIdentifier conversationIdentifier, IProgressResultCallback callback)
      • getConversationTopStatusInTag

         void getConversationTopStatusInTag(ConversationIdentifier conversationIdentifier, String tagId, IBooleanCallback callback)
      • 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)
      • getUnreadCountByTag

         void getUnreadCountByTag(String tagId, boolean containBlocked, IIntegerCallback callback)
      • setConversationToTopInTag

         void setConversationToTopInTag(String tagId, ConversationIdentifier conversationIdentifier, boolean isTop, IOperationCallback callback)
      • sendReadReceiptMessage

         void sendReadReceiptMessage(String targetId, String channelId, Array<String> msgUId, ISendReadReceiptMessageCallback callback)
      • getMessageReadUserList

         void getMessageReadUserList(String groupId, String channelId, String msgUId, IGetMessageReaderCallback callback)
      • SendRTCSignaling

         int SendRTCSignaling(String roomId, String signalingName, boolean isQuery, Array<byte> pbBuffer, int timeout, IRTCSignalingCallback callback)
      • getTopStatus

         void getTopStatus(String targetId, int conversationType, String channelId, IBooleanCallback callback)
      • getUnreadCountByObjectName

         void getUnreadCountByObjectName(String targetId, int conversationType, Array<String> objectNames, String channelId, IIntegerCallback callback)
      • clearConversationsByTag

         void clearConversationsByTag(String tagId, boolean deleteMessage, IBooleanCallback callback)
      • getGroupMessageDeliverList

         void getGroupMessageDeliverList(String groupId, String channelId, String msgUId, IGetGroupMessageDeliverCallback callback)
      • forceReconnect

         void forceReconnect(IConnectStringCallback callback)
      • syncUltraGroupReadStatus

         void syncUltraGroupReadStatus(String targetId, String channelId, long timestamp, IOperationCallback callback)
      • sendUltraGroupTypingStatus

         void sendUltraGroupTypingStatus(String targetId, String channelId, int operateType, IOperationCallback callback)
      • deleteUltraGroupMessages

         void deleteUltraGroupMessages(String targetId, String channelId, long timestamp, IBooleanCallback callback)
      • 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, IProgressResultCallback callback)
      • removeUltraMessageExpansion

         void removeUltraMessageExpansion(List<String> keyArray, String messageUId, IOperationCallback callback)
      • setConversationsNotificationLevel

         void setConversationsNotificationLevel(List<ConversationIdentifier> conversationIdentifierList, int level, IOperationCallback callback)
      • searchMessageForAllChannel

         void searchMessageForAllChannel(String targetId, int categoryId, String keyword, int count, long timestamp, IProgressResultCallback callback)
      • searchMessageByTimestampForAllChannel

         void searchMessageByTimestampForAllChannel(String targetId, int categoryId, String keyword, long startTime, long endTime, int offset, int limit, IProgressResultCallback callback)
      • getUltraGroupChannelList

         void getUltraGroupChannelList(String targetId, int channelType, int countPerBatch, IProgressResultCallback callback)
      • getUnreadMentionedMessages

         void getUnreadMentionedMessages(int conversationType, String targetId, String channelId, int count, boolean desc, int countPerBatch, IProgressResultCallback 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, IProgressResultCallback callback)
      • sendGroupCallSignalInfo

         void sendGroupCallSignalInfo(String targetId, String key, String signalInfo, IGroupCallSignalCallBack callback)
      • sendReadReceiptMessageV4

         void sendReadReceiptMessageV4(int conversationType, String targetId, String channelId, String startMsgUid, String endMsgUid, ISendReadReceiptMessageCallback callback)
      • getMessageReadReceipt

         void getMessageReadReceipt(String targetId, String channelId, String msgUId, IGetMessageReaderV4Callback callback)
      • updateConversationReadTime

         void updateConversationReadTime(int conversationType, String targetId, String channelId, long readTime, IOperationCallback callback)
      • getContinuousMessages

         void getContinuousMessages(Conversation conversation, RemoteHistoryMsgOption remoteHistoryMsgOption, IResultCallbackEx callback)
      • subscribeEvent

         void subscribeEvent(SubscribeEventRequest request, ISubscribeEventCallback callback)
      • unSubscribeEvent

         void unSubscribeEvent(SubscribeEventRequest request, ISubscribeEventCallback callback)
      • getSubscribeUserList

         void getSubscribeUserList(SubscribeEventRequest request, int pageCount, int index, IProgressResultCallback callback)
      • updateMyUserProfile

         void updateMyUserProfile(UserProfile userProfile, IUpdateUserProfileCallback callback)
      • getUserProfiles

         void getUserProfiles(List<String> userIdList, IProgressResultCallback callback)
      • createGroup

         void createGroup(GroupInfo groupInfo, List<String> inviteeUserIds, IOperationCallbackEx callback)
      • updateGroupInfo

         void updateGroupInfo(GroupInfo groupInfo, IOperationCallbackEx callback)
      • getGroupsInfo

         void getGroupsInfo(List<String> groupIds, IProgressResultCallback callback)
      • kickGroupMembers

         void kickGroupMembers(String groupId, List<String> userIds, QuitGroupConfig config, IOperationCallback callback)
      • quitGroup

         void quitGroup(String groupId, QuitGroupConfig config, IOperationCallback callback)
      • dismissGroup

         void dismissGroup(String groupId, IOperationCallback callback)
      • transferGroupOwner

         void transferGroupOwner(String groupId, String newOwnerId, boolean quitGroup, QuitGroupConfig config, IOperationCallback callback)
      • updateGroupManagers

         void updateGroupManagers(String groupId, List<String> managerUserIds, boolean isRemoveManager, IOperationCallback callback)
      • getGroupMembersByRole

         void getGroupMembersByRole(String groupId, int role, PagingQueryOption option, IPageResultCallback callback)
      • getGroupMembers

         void getGroupMembers(String groupId, List<String> userIds, IProgressResultCallback callback)
      • setGroupMemberInfo

         void setGroupMemberInfo(String groupId, String userId, String nickname, String extra, IOperationCallback callback)
      • searchGroupMembers

         void searchGroupMembers(String groupId, String nickname, PagingQueryOption option, IPageResultCallback callback)
      • joinGroup

         void joinGroup(String groupId, IOperationCallbackEx callback)
      • inviteUsersToGroup

         void inviteUsersToGroup(String groupId, List<String> userIds, IOperationCallbackEx callback)
      • handleGroupInvite

         void handleGroupInvite(String groupId, String inviterUserId, String joinId, String reason, boolean isAgree, boolean isAdmin, IOperationCallbackEx callback)
      • getGroupApplications

         void getGroupApplications(Array<int> directionArray, Array<int> statusArray, PagingQueryOption option, IPageResultCallback callback)
      • getJoinedGroupsByRole

         void getJoinedGroupsByRole(int role, PagingQueryOption option, IPageResultCallback callback)
      • searchJoinedGroups

         void searchJoinedGroups(String groupName, PagingQueryOption option, IPageResultCallback callback)
      • getJoinedGroups

         void getJoinedGroups(List<String> groupIds, IProgressResultCallback callback)
      • setGroupRemark

         void setGroupRemark(String groupId, String remark, IOperationCallback callback)
      • updateGroupFollows

         void updateGroupFollows(String groupId, List<String> userIds, boolean isSetFollows, IOperationCallback callback)
      • getGroupFollows

         void getGroupFollows(String groupId, IProgressResultCallback callback)
      • addFriend

         void addFriend(String userId, int friendType, String extra, IOperationCallbackEx callback)
      • deleteFriends

         void deleteFriends(List<String> userIds, int friendType, IOperationCallback callback)
      • handleFriendApplication

         void handleFriendApplication(String userId, String reason, boolean isAccept, IOperationCallback callback)
      • setFriendInfo

         void setFriendInfo(String userId, String remark, Map extFields, IOperationCallback callback)
      • checkFriends

         void checkFriends(List<String> userIds, int type, IProgressResultCallback callback)
      • getFriends

         void getFriends(int type, IProgressResultCallback callback)
      • getFriendsInfo

         void getFriendsInfo(List<String> userIds, IProgressResultCallback callback)
      • searchFriendsInfo

         void searchFriendsInfo(String name, IProgressResultCallback callback)