searchMessagesForChannels

public abstract void searchMessagesForChannels(ConversationType conversationType, String targetId, Array<String> channelIds, String keyword, long startTime, int limit, IRongCoreCallback.ResultCallback<List<Message>> resultCallback)

Searches for messages in a specified conversation based on user ID, conversation business identifier, keyword, etc.

Note: To ensure that custom messages can be searched, implement the getSearchableWord method in your custom message.

Since

5.6.2

Parameters

conversationType

The specified conversation type.

targetId

The specified conversation ID.

channelIds

The business identifier of the conversation to which the messages belong. (0 RC_INVALID_PARAMETER_CHANNEL_ID)

keyword

The keyword. (0

startTime

The start time for the query. Pass 0 to start searching from the latest message, searching backward from this time.

limit

The number of search results to return 0 < limit <= 100. If limit > 100, only 100 results will be returned.

resultCallback

The callback for search results.