logout

open fun logout(@NonNull activity: Activity, @Nullable callback: GamebaseCallback)

Logs out the user.

Example Usage:

Gamebase.logout(activity, new GamebaseCallback() {
    @Override
    public void onCallback(final GamebaseException exception) {
        if (!Gamebase.isSuccess(exception)) {
            // Logout failed.
            return;
        }
        // Logout success.
    }
});

Since

Added 1.4.0.

Parameters

activity

The activity which is starting the mapping process.

callback

Callbacks the result of logout.

See also