Skip to main content

参数说明

名称类型描述版本
conversationConversation会话标识1.0.0
countint拉取数量1.0.0
timelong消息时间戳,如果传 0 为当前时间1.0.0
directionJIMConst.PullDirection拉取方向1.0.0
callbackIMessageManager.IGetMessagesWithFinishCallback拉取回调1.0.0

示例代码

Conversation conversation = new Conversation(Conversation.ConversationType.GROUP, "groupId1");
JIM.getInstance().getMessageManager().getMentionMessageList(conversation, 100, 0, JIMConst.PullDirection.OLDER, new IMessageManager.IGetMessagesWithFinishCallback() {
@Override
public void onSuccess(List<Message> messages, boolean isFinished) {

}

@Override
public void onError(int errorCode) {

}
});