ModifyAccountWithLoginState
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ModifyAccountWithLoginState for Unreal Engine SDK.
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
| Parameter | Type | Description |
|---|---|---|
| oldphoneAreaCode | string | Phone area code of the old account. If the account is registered with an email address, the field is left empty. |
| newAccount | string | New account |
| newAccountVerifyCode | string | Verification code of the new account |
| newphoneAreaCode | string | Phone area code of the new account. If the account is registered with an email address, the field is left empty. |
| extraJson | string | Extended 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);