PreviousMessageListQuery

A class representing query to retrieve previous message list for channels.

Currently, 1 kind of message list can be queried.

  • The list of previous messages for a channel.

The query can be get by calling OpenChannel.createPreviousMessageListQuery or GroupChannel.createPreviousMessageListQuery.

Properties

Link copied to clipboard

The current channel.

Link copied to clipboard

The type of the channel to get messages from.

Link copied to clipboard

The url of the channel to get messages from.

Link copied to clipboard

The custom type filter of the message.

Link copied to clipboard

Whether there is more page to load.

Link copied to clipboard

Whether the current query is in communication progress with server.

Link copied to clipboard
val limit: Int

The maximum number of messages per queried page.

Link copied to clipboard

MessagePayloadFilter to be used in retrieving message lists. This is more preferred way of setting other include flags.

Link copied to clipboard

The time of a request. The initial value will be a value from PreviousMessageListQueryParams.messageTimestamp. After each call of load, this value will change to the oldest BaseMessage.createdAt value of the message that have been fetched.

Link copied to clipboard
Link copied to clipboard

Determines the reply types to include in the results.

Link copied to clipboard

Indicates whether the queried result will be reversed. If true, the result will be returned by creation time descending order.

Link copied to clipboard

Sender user ids filter.

Link copied to clipboard

If set to true, only messages that belong to current user's subchannel is fetched. If set to false, all messages will be fetched. Default is false. Takes effect only when the requested channel is a dynamically partitioned open channel.

Functions

Link copied to clipboard

Requests query result for the previous messages. The queried result is passed to handler as list.