Skip to main content

Modify the account using the current login state (ModifyAccountWithLoginState)

AndroidiOSWindows
If you're using the Unreal Engine, see ModifyAccountWithLoginState for Unreal Engine SDK.

After logging in, you can use the current login state to modify the current account.

Function Definition

public void ModifyAccountWithLoginState(
string oldPhoneAreaCode,
string newAccount,
string newAccountVerifyCode,
string newPhoneAreaCode,
string extraJson = "{}");

Input Parameters

ParametersTypeExplanation
oldphoneAreaCodeStringThe mobile area code of the old account.Leave empty if the account is registered via email.
newAccountStringNew account
newAccountVerifyCodeStringVerification code for the new account
newphoneAreaCodeStringThe mobile area code for the new account.Leave empty if the account is registered via email.
extraJsonStringAdditional information

Callback processing

The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.

The callback ID is INTL_AUTH_MODIFY_ACCOUNT.

Code example

string oldPhoneAreaCode = "";
string newAccount = "";
string newAccountVerifyCode = "";
string newPhoneAreaCode = "";

INTLAPI.ModifyAccountWithLoginState(oldPhoneAreaCode, newAccount, newAccountVerifyCode, newPhoneAreaCode);