cancelWithdrawal
If the user has requested to withdraw, cancel it. If the user has never requested to leave, the function call will fail.
Example Usage:
public static void testCancelWithdraw() {
Gamebase.TemporaryWithdrawal.cancelWithdrawal(new GamebaseCallback() {
@Override
public void onCallback(final GamebaseException exception) {
if (!Gamebase.isSuccess(exception)) {
if (exception.getCode() == GamebaseError.AUTH_WITHDRAW_NOT_TEMPORARY_WITHDRAW) {
// Never requested temporary withdrawal before.
} else {
// Cancel temporary withdrawal failed.
return;
}
}
// Cancel temporary withdrawal success.
}
});
}
Content copied to clipboard
Since
Added 2.9.0.
Parameters
activity
The activity which is starting the mapping process.
callback
Callbacks the result of cancel withdrawal.