SDKsAndroidEnterprise
Set the burn duration
Use setConversationBurnDuration() to set the Android burn-after-reading retention duration.
OpenIMClient.getInstance().conversationManager.setConversationBurnDuration(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
markBurnDurationSubmitted(conversationID, 30);
}
@Override
public void onError(int code, String error) {
recordBurnDurationFailure(code, error);
}
},
conversationID,
30
);burnDuration is measured in seconds. Enable or disable burn after reading with isPrivateChat; do not confuse this value with the scheduled server deletion period msgDestructTime. Merge the updated duration from onConversationChanged.
Was this page helpful?