Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.rtm.GetHistoryMessagesOptions Class Reference

## Public Member Functions
| GetHistoryMessagesOptions ()
| GetHistoryMessagesOptions (int messageCount, long start, long end)
void | setMessageCount (int messageCount)
void | setStart (long start)
void | setEnd (long end)
int | getMessageCount ()
long | getStart ()
long | getEnd ()
String | toString ()

## Detailed Description

This class represents options for retrieving the message history of a channel. It provides the ability to specify the number of messages to retrieve, and the start and end timestamps of the messages to retrieve.

## Constructor & Destructor Documentation

## ◆ GetHistoryMessagesOptions() [1/2]

io.agora.rtm.GetHistoryMessagesOptions.GetHistoryMessagesOptions | ( |  | ) |

Constructs a new instance of

GetHistoryMessagesOptions

with default parameters.

## ◆ GetHistoryMessagesOptions() [2/2]

io.agora.rtm.GetHistoryMessagesOptions.GetHistoryMessagesOptions | ( | int | messageCount,
|  | long | start,
|  | long | end
| ) |  |

Constructs a new instance of

GetHistoryMessagesOptions

with the specified options.

Parameters

  messageCount | The number of messages to retrieve.
  start | The start timestamp of the messages to retrieve.
  end | The end timestamp of the messages to retrieve.

io.agora.rtm.GetHistoryMessagesOptions.GetHistoryMessagesOptions
GetHistoryMessagesOptions()
Definition: GetHistoryMessagesOptions.java:29