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.
V2TIMMessageSearchResultItem

Public Member Functions

String getConversationID ()
 
int getMessageCount ()
 
List< V2TIMMessagegetMessageList ()
 

Member Function Documentation

◆ getConversationID()

String getConversationID ( )
inline

Get the conversation ID

◆ getMessageCount()

int getMessageCount ( )
inline

Total number of eligible messages found in the current conversation

◆ getMessageList()

List<V2TIMMessage> getMessageList ( )
inline

List of eligible messages

If you search a specified conversation, messageList contains the list of all the eligible messages in the current conversation.

If you search all conversations, there are two possibilities for the number of messages contained in messageList:

  • If more than 1 eligible message is found in a conversation, messageList is empty, and the notification message "messageCount related messages" can be displayed on the UI.
  • If 1 eligible message is found in a conversation, messageList contains the eligible message, and the message is displayed with the matching keywords highlighted on the UI.