Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.rtm.RtmHistory Class Referenceabstract

## Public Member Functions
abstract void | getMessages (String channelName, RtmChannelType channelType, GetHistoryMessagesOptions options, ResultCallback< GetMessagesResult > resultCallback)

## Detailed Description

The RtmHistory class.

This class provides the rtm history methods that can be invoked by your app.

## Member Function Documentation

## ◆ getMessages()

abstract void io.agora.rtm.RtmHistory.getMessages | ( | String | channelName,
|  | RtmChannelType | channelType,
|  | GetHistoryMessagesOptions | options,
|  | ResultCallback< GetMessagesResult > | resultCallback
| ) |  |
| abstract

gets history messages in the channel.

Parameters

  channelName | The name of the channel.
  channelType | The type of the channel.
  options | The query options.
  resultCallback | A ResultCallback object. Success: will receives the ResultCallback#onSuccess(Object) callback. Failure: will receives the ResultCallback#onFailure(ErrorInfo) callback.