Skip to main content

ModifyAccountWithLoginState

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ModifyAccountWithLoginState for Unreal Engine SDK.

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

Function definition

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

Input parameters

ParameterTypeDescription
oldphoneAreaCodestringPhone area code of the old account. If the account is registered with an email address, the field is left empty.
newAccountstringNew account
newAccountVerifyCodestringVerification code of the new account
newphoneAreaCodestringPhone area code of the new account. If the account is registered with an email address, the field is left empty.
extraJsonstringExtended information

Observers

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

The callback methodID is INTL_AUTH_MODIFY_ACCOUNT.

Code sample

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

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