V2TimMessageSearchResultItem

Introduction

The single item of the message search result.

Parameter introduction

conversationID

  • Parameter type : String

  • Supported Platform: All

  • Parameter description : The conversation ID

messageCount

  • Parameter type : int

  • Supported Platform: All

  • Parameter description : Total number of eligible messages found in the current conversation.

messageList

  • Parameter type : List< V2TimMessage >

  • Supported Platform: All

  • Parameter description : 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:

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

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

toJson

  • Parameter type : Map< String, dynamic > toJson()

  • Supported Platform: All

  • Parameter description : Get the data in Map.

results matching ""

    No results matching ""