MessageSearchQuery

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

Link copied to clipboard
object Companion
Link copied to clipboard

The order in which the query result will be based on. SCORE query returns the result as by their matching score. TIMESTAMP query returns the result as by BaseMessage's timestamp.

Properties

Link copied to clipboard

The current custom type of channel set as the search scope.

Link copied to clipboard

The current channel url set as the search scope.

Link copied to clipboard

Whether the current search query should be an exact match or not.

Link copied to clipboard

Whether there is a next page.

Link copied to clipboard

Whether the current search query should be an advanced query or not.

Link copied to clipboard

Whether the current query is in communication progress with server.

Link copied to clipboard

The current search keyword.

Link copied to clipboard
val limit: Int

The maximum number of BaseMessages per single query.

Link copied to clipboard

The start message timestamp set as the search range.

Link copied to clipboard

The end message timestamp set as the search range.

Link copied to clipboard

The current order method.

Link copied to clipboard

Whether the current search result is set to be reversed or not.

Link copied to clipboard

The target fields of the current query as the search scope.

Link copied to clipboard

The total count of results that matches the given search.

Functions

Link copied to clipboard

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.

Link copied to clipboard

Serializes the [MessageSearchQuery] instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.