Logout user

You can logout the user from Applozic by using the below method:

Applozic.logoutUser(context, new AlLogoutHandler() {
                @Override
                public void onSuccess(Context context) {
                    
                }

                @Override
                public void onFailure(Exception exception) {

                }
        });
Applozic.logoutUser(context, object : AlLogoutHandler {
            override fun onSuccess(context: Context?) {
              // Logout success
            }

            override fun onFailure(exception: Exception?) {
             // Logout failed
            }
       })

Did this page help you?