searchConversations

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

Searches for conversations based on keywords.

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

Parameters

keyword

The keyword to search for.

conversationTypes

The types of conversations to search.

objectNames

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

resultCallback

Callback for search results.