Package io.agora.rtm
Class RtmHistory
java.lang.Object
io.agora.rtm.RtmHistory
The RtmHistory class.
This class provides the rtm history methods that can be invoked by your app.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidgetMessages(String channelName, RtmConstants.RtmChannelType channelType, GetHistoryMessagesOptions options, ResultCallback<GetMessagesResult> resultCallback) gets history messages in the channel.
-
Constructor Details
-
RtmHistory
public RtmHistory()
-
-
Method Details
-
getMessages
public abstract void getMessages(String channelName, RtmConstants.RtmChannelType channelType, GetHistoryMessagesOptions options, ResultCallback<GetMessagesResult> resultCallback) gets history messages in the channel.- Parameters:
channelName- The name of the channel.channelType- The type of the channel.options- The query options.resultCallback- AResultCallbackobject. - Success: will receives theResultCallback.onSuccess(Object)callback. - Failure: will receives theResultCallback.onFailure(ErrorInfo)callback.
-