Skip to main content

ModifyAccountWithLoginState [Player Network SDK Only]

[Player Network SDK Only] After logging in, modify the current account in the current login state.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

Callback Processing

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

The callback event is AccountEvents. The callback methodID is GUA_ACCOUNT_MODIFY_ACCOUNT.

Code Sample

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