searchConversations

public abstract void searchConversations(String keyword, Array<ConversationType> conversationTypes, Array<String> objectNames, IRongCoreCallback.ResultCallback<List<SearchConversationResult>> resultCallback)

Search conversations based on keywords.

This method quickly returns a list of matched conversations, including the count of matched messages in each conversation. Use getMatchCount to retrieve this count.Note: To ensure custom messages are searchable, implement the getSearchableWord method in your custom message class.

Since

5.0.0

Parameters

keyword

The keyword to search for.

conversationTypes

The types of conversations to search.

objectNames

The types of messages to search, e.g., RC:TxtMsg.

resultCallback

Callback for search results.