Gamebase SDK for Android  1.3.0
Toast Gamebase Platform

◆ removeMapping()

static void removeMapping ( @NonNull final Activity  activity,
final String  providerName,
@Nullable final GamebaseCallback  callback 
)
static

Removes external authentication that is mapped to the current user identifier.

Parameters
activityThe activity which is starting the mapping process.
providerNameThe providerName which is authentication provider.
callbackCallbacks the result of removing the mapping.

Example Usage:

TAPSDK.removeMapping(AuthProvider.GOOGLE, new TAPCallback() {
@Override
public void onCallback(TAPException exception) {
if (TAPSDK.isSuccess(exception)) {
Log.d(TAG, "Remove mapping successful");
} else {
Log.d(TAG, "Remove mapping failed");
}
}
});
See also
com.toast.android.gamebase.base.auth.AuthProvider
com.toast.android.gamebase.GamebaseCallback
com.toast.android.gamebase.base.GamebaseException
com.toast.android.gamebase.base.GamebaseError