This method records each time a user logs out. It is set to happen when the user clicks the Log Out option.

This method ensures the user is registered as logged out, maintaining security for both that user and any subsequent ones on the same device.

Method Signature

void logoutUser(CallBack callBack)


These are the arguments that define the method.

Name Type Mandatory Description
CallBack Class Mandatory A promise to the caller who initiated that method, to get an event after that task is completed.

Sample Code

Analytics.getInstance(this).logoutUser(new CallBack() {
    public void onSuccess(String response) {
        // When logout succeeds
    public void onFailure(String error) {
        // When logout fails

results matching ""

    No results matching ""