search Conversations
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.
conversation Types
The types of conversations to search.
object Names
The types of messages to search for, e.g., RC:TxtMsg.
result Callback
Callback for search results.