SDKsAndroidEnterprise
Enable or disable burn after reading
Use setOneConversationPrivateChat() to configure burn-after-reading mode for a conversation.
OpenIMClient.getInstance().conversationManager.setOneConversationPrivateChat(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
// The request completed.
}
@Override
public void onError(int code, String error) {
// code and error describe the failure.
}
},
conversationID,
true
);Pass false to disable burn after reading. Set the duration separately with burnDuration; see Set the burn duration. This is distinct from scheduled server message deletion. Conversation list changes can be received through onConversationChanged; see Get the conversation list for listener setup.
Was this page helpful?