get Messages
public abstract void getMessages(ConversationType conversationType, String targetId, HistoryMessageOption historyMsgOption, IRongCoreCallback.IGetMessageCallback callback)
获取指定会话历史消息。
此方法先从本地获取历史消息,本地有缺失的情况下会从服务端同步缺失的部分;从服务端同步失败的时候会返回非 0 的 errorCode,同时把本地能取到的消息回调上去。 必须开通历史消息云存储功能。
Since
5.1.2
Parameters
conversation Type
会话类型 io.rong.imlib.model.Conversation.ConversationType 。
target Id
会话 id。
history Msg Option
HistoryMessageOption
callback
清除消息的回调。