Export chat conversation

To export a chat conversation of a user, or a group call the below method.

FlyCore.prepareChatConversationToExport(JID,((isSuccess, throwable, data) -> {
if (isSuccess) {
ChatDataModel chatDataModel = (ChatDataModel) data.get("data")
// ChatDataModel has the every data to export the chat
} else {
//Exporting chat data failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
JIDStringjid of the user/group
CALLBACKFlyCallbackFlyCallback implemented as lambda expression

Note : To know more about ChatDataModel, refer class documentation.

Email Chat Conversation#

To export a chat conversation of a user, or a group to a list of email recipients call the below method.

FlyCore.exportChatConversationToEmail(JID,EMAIL_RECIPIENTS_LIST);
ArgumentTypeDescription
JIDStringjid of the user/group
EMAIL_RECIPIENTS_LISTArrayList<String>List of Strings holds the recipients email address. List can be empty but not null.
info

Email chat internally call the exportChatConversation() method and presents a share intent to export chat via email