removeMapping
open fun removeMapping(@NonNull activity: Activity, @NonNull providerName: String, @Nullable callback: GamebaseCallback)
Removes external authentication that is mapped to the current user identifier.
Example Usage:
Gamebase.removeMapping(AuthProvider.GOOGLE, new GamebaseCallback() {
@Override
public void onCallback(GamebaseException exception) {
if (Gamebase.isSuccess(exception)) {
Log.d(TAG, "Remove mapping successful");
} else {
Log.d(TAG, "Remove mapping failed");
}
}
});
Content copied to clipboard
Since
Added 1.4.0.
Parameters
activity
The activity which is starting the mapping process.
providerName
The providerName which is authentication provider.
callback
Callbacks the result of removing the mapping.