Skip to main content

Parameters

NameTypeDescriptionVersion
conversationConversationConversation identifier1.0.0
countintNumber of items to retrieve1.0.0
timelongMessage timestamp. Pass 0 to use the current time.1.0.0
directionJIMConst.PullDirectionRetrieval direction1.0.0
callbackIMessageManager.IGetMessagesWithFinishCallbackRetrieval callback1.0.0

Code Example

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) {

}
});