Skip to main content

Modify the account using the current login state (ModifyAccountWithLoginState)

AndroidiOSWindows
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

NameTypeExplanation
OldPhoneAreaCodeFStringPhone area code for the old account, leave blank if the account is an email.
NewAccountFStringNew account
NewAccountVerifyCodeFStringVerification code for the new account
NewPhoneAreaCodeFStringPhone area code for the new account, leave blank if the account is an email.
ExtraJsonFStringAdditional 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", "");