Agora RTC Objective-C API Reference Refactor

Instance Methods
AgoraRtmHistory Class Reference

Inherits <NSObject>.

## Instance Methods
(void) | - getMessages:channelType:options:completion:

## Detailed Description

The AgoraRtmHistory class.

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

## Method Documentation

## ◆ NS_UNAVAILABLE

- (instancetype _Nullable) NS_UNAVAILABLE |  |  |

## ◆ getMessages:channelType:options:completion:

- (void) getMessages: |  | (NSString *_Nonnull) | channelName
channelType: |  | (AgoraRtmChannelType) | channelType
options: |  | (AgoraRtmGetHistoryMessagesOptions *_Nullable) | options
completion: |  | (AgoraRtmGetHistoryMessagesBlock _Nullable) | completionBlock

gets history messages in the channel.

Parameters

  channelName | The name of the channel.
  channelType | The type of the channel.
  options | The query options.
  completionBlock | The operation result will be notified by completionBlock, if operation success，will given a not nil response and nil errorInfo，if operation failed，will given a nil response and not nil errorInfo.