Skip to main content

Parameters

NameTypeDescriptionVersion
conversationConversationConversation identifier1.0.0
startTimelongMessages before startTime are cleared. Pass 0 to use the current time.1.0.0
callbackIMessageManager.ISimpleCallbackResult callback1.0.0

Code Example

Conversation conversation = new Conversation(Conversation.ConversationType.GROUP, "groupId1");
JIM.getInstance().getMessageManager().clearMessages(conversation, 0, new IMessageManager.ISimpleCallback() {
@Override
public void onSuccess() {

}

@Override
public void onError(int errorCode) {

}
});