Message Search Query
A class representing query to retrieve list of BaseMessages that matches a given query with given filters. MessageSearchQuery can be generated by using SendbirdChat.createMessageSearchQuery
Since
3.0.116
Types
Properties
The current custom type of channel set as the search scope.
The current channel url set as the search scope.
Whether the current search query should be an exact match or not.
Whether the current search query should be an advanced query or not.
Whether the current query is in communication progress with server.
The maximum number of BaseMessages per single query.
The start message timestamp set as the search range.
The end message timestamp set as the search range.
The current order method.
The target fields of the current query as the search scope.
The total count of results that matches the given search.
Functions
Gets the list of BaseMessages that matches the given search. The queried result is passed to handler
as list
. If this method is repeatedly called after each next()
is finished, it retrieves the following search results as BaseMessage list. If there is no more search results, an empty List
(not null
) is returned to handler
.
Serializes the [MessageSearchQuery]
instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.