Skip to main content

Modify account with current login state (ModifyAccountWithLoginState) [Player Network SDK only]

[Player Network SDK only] After logging in, you can use the current login state to modify the account.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParametersTypeDescription
oldphoneAreaCodestringPhone area code for the old account.If the account is registered via email, this will be empty.
newAccountstringNew account
newAccountVerifyCodestringVerification code for new account
newphoneAreaCodestringPhone area code for the new account.If the account is registered via email, this will be empty.
extraJsonstringExtended information

Callback Handling

The callback processing interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_MODIFY_ACCOUNT.

Code Example

UnionAdapterAPI.GetAccountService().ModifyAccountWithLoginState("886", "newAccount", "newAccountVerifyCode", "86");