# transferAccountWithIdPLogin

open fun transferAccountWithIdPLogin(accountId: String, accountPassword: String, callback: GamebaseDataCallback<AuthToken>)

Try to transfer account with transfer account id and password. If this process is finished successfully, it proceeds login process and return AuthToken.

Example Usage:

    public static void onTransferAccount(final Activity activity, final String accountId, final String accountPassword) {
        Gamebase.transferAccountWithIdPLogin(accountId, accountPassword, new GamebaseDataCallback<AuthToken>() {
            @Override
            public void onCallback(final AuthToken authToken, final GamebaseException exception) {
                if (!Gamebase.isSuccess(exception)) {
                    // Transfer Account failed.
                    return;
                }

                // Transfer Account success.
                // TODO: implements post login process
            }
        });
    }

Content copied to clipboard

#### Since

Added 2.1.0.

#### Parameters

accountId
accountPassword
callback

#### See also

TransferAccountInfo
AuthToken