Manage User Account

Send Feedback/Contact Us Info#

To send feedback information from the user, you can call the below method.

Mirrorfly.sendContactUsInfo(title: TITLE,description: DESCRIPTION,flyCallBack: (response){
if (isSuccess) {
// Feedback data sent successfully
} else {
//Sending feedback data failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
TITLEStringtitle for the feedback
DESCRIPTIONStringdetailed info about the feedback
flyCallbackFlyResponsecallback to observe the action status

Delete Account#

To delete the chat account call the below method.

FlyCore.deleteAccount(reason: REASON, feedback: FEEDBACK, flyCallBack: (FlyResponse response) {
if (response.isSuccess) {
// Chat account has been deleted and need to re-register again to send and receive message
} else {
// Delete chat account failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
REASONStringreason for the account deletion
FEEDBACKStringdetailed feedback about the account deletion
flyCallbackFlyResponsecallback to observe the action status
info

Deleting chat account will remove all information's(messages, groups and contacts) related to this chat account

Logout of Chat SDK#

To logout of the chat SDK call the below method.

FlyCore.logoutOfChatSDK(flyCallBack: (FlyResponse response){
if (response.isSuccess) {
// User logged out of the chat sdk need to login again to send and receive message
} else {
// Logging out failed print throwable to find the exception details.
}
});
ArgumentTypeDescription
flyCallbackFlyResponsecallback to observe the action status
caution

Once you are logged out you cannot establish a connection with chat server unless you login again.

Note : You need to re-login when the onLoggedOut event is triggered.

info

Logout function will not clear messages and groups data in Chat database.

info

Sdk is having a built-in functions to prepare the JID, Group JID.