Modify the account using the current login state (ModifyAccountWithLoginState)
AndroidiOSWindows
If you're using the Unity engine, see the ModifyAccountWithLoginState for Unity SDK.
If you're using the Unity engine, see the ModifyAccountWithLoginState for Unity SDK.
After logging in, you can use the current login state to modify the current account.
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ModifyAccountWithLoginState(
const FString OldPhoneAreaCode,
const FString NewAccount,
const FString NewAccountVerifyCode,
const FString NewPhoneAreaCode,
const FString ExtraJson = "{}");
Input Parameters
| Name | Type | Explanation |
|---|---|---|
| OldPhoneAreaCode | FString | Phone area code for the old account, leave blank if the account is an email. |
| NewAccount | FString | New account |
| NewAccountVerifyCode | FString | Verification code for the new account |
| NewPhoneAreaCode | FString | Phone area code for the new account, leave blank if the account is an email. |
| ExtraJson | FString | Additional information |
Callback processing
The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.
The callback ID is kMethodIDAuthModifyAccount.
Code example
UINTLSDKAPI::ModifyAccountWithLoginState("", "newaccount@email.com", "12345", "");