Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
(void) | - getMessages:channelType:options:completion: |
The AgoraRtmHistory class.
This class provides the rtm history methods that can be invoked by your app.
- (instancetype _Nullable) NS_UNAVAILABLE |
- (void) getMessages: | (NSString *_Nonnull) | channelName | |
channelType: | (AgoraRtmChannelType) | channelType | |
options: | (AgoraRtmGetHistoryMessagesOptions *_Nullable) | options | |
completion: | (AgoraRtmGetHistoryMessagesBlock _Nullable) | completionBlock | |
gets history messages in the channel.
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. |