SDKsAndroid
Set a conversation draft
Use setConversationDraft() to save a conversation draft.
Save the draft when a chat is left, the conversation changes, or editor content changes. Maintain editor state locally and debounce intermediate saves; submit the newest value before leaving the page.
OpenIMClient.getInstance().conversationManager.setConversationDraft(
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,
editorValue
);Pass an empty string to clear the draft. Conversation list changes can be received through onConversationChanged.
Was this page helpful?