IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMMessageSearchResult

Public Member Functions

int getTotalCount ()
 
List< V2TIMMessageSearchResultItemgetMessageSearchResultItems ()
 

Member Function Documentation

◆ getTotalCount()

int getTotalCount ( )
inline

If you search a specified conversation, the total number of eligible messages is returned. If you search all conversations, the total number of conversations where the eligible messages reside is returned.

◆ getMessageSearchResultItems()

List<V2TIMMessageSearchResultItem> getMessageSearchResultItems ( )
inline

If you search a specified conversation, the result list contains only the results found in the conversation. If you search all conversations, eligible messages are grouped by conversation ID and returned on multiple pages.