BanInfo
If the login or addMapping API fails with error BANNED_MEMBER (7), this VO class tells you the ban information.
Example Usage:
void onLoginWithBannedMember() {
Gamebase.login(activity, provider, new GamebaseDataCallback<AuthToken>() {
@Override
public void onCallback(AuthToken data, GamebaseException exception) {
if (!Gamebase.isSuccess(exception)) {
BanInfo banInfo = BanInfo.from(exception);
if (banInfo != null) {
// Login failed because the user is banned.
// Show the user the reason for the block and the block period.
return;
}
// Login failed by another reason.
return;
}
// Login Success.
}
});
}
Content copied to clipboard
Since
Added 1.11.0.