Modify the account using the current login state (ModifyAccountWithLoginState)
AndroidiOSWindows
If you're using the Unreal Engine, see ModifyAccountWithLoginState for Unreal Engine SDK.
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
| Parameters | Type | Explanation |
|---|---|---|
| oldphoneAreaCode | String | The mobile area code of the old account.Leave empty if the account is registered via email. |
| newAccount | String | New account |
| newAccountVerifyCode | String | Verification code for the new account |
| newphoneAreaCode | String | The mobile area code for the new account.Leave empty if the account is registered via email. |
| extraJson | String | Additional 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);