exportChatConversationToEmail static method
Future<void>
exportChatConversationToEmail({
- required String jid,
- required dynamic flyCallBack(
- FlyResponse response
Exports chat conversation to email.
This method exports the chat conversation of the specified JID to email.
Params:
jid
: The JID of the chat to be exported.
Returns:
flyCallBack
: A callback function that is called with the response.
Usage example:
String jid = "user_jid";
Mirrorfly.exportChatConversationToEmail(
jid: jid,
flyCallBack: (response) {
// Handle the response
print("Chat exported to email: $response");
},
);
Implementation
static Future<void> exportChatConversationToEmail(
{required String jid,
required Function(FlyResponse response) flyCallBack}) {
return FlyChatFlutterPlatform.instance
.exportChatConversationToEmail(jid, flyCallBack);
}