Skip to main content

Logout

Logout Customer SDK:

MeetingDoctorsClient.instance.deauthenticate(object: OnResetDataListener {
override fun dataResetError(exception: Exception?) {
// If your App does not restart after close session you must call newInstance() method from MeetingDoctorsClient
//e.g. MeetingDoctorsClient.newInstance(this, "<YOUR_API_KEY>",
true,
true,
"yourEncryptionPassword");

//DO YOUR STUFF
//e.g. restart your App
}
override fun dataResetSuccessFul() {
//DO YOUR STUFF
//e.g. Toast.makeText(context, "Exception: " + exception.getLocalizedMessage(), Toast.LENGTH_LONG).show();
}
});