Skip to main content

Modify the account using the current login state (ModifyAccountWithLoginState)

AndroidiOSPC

If you are using the Unity engine, see ModifyAccountWithLoginState in the 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​

NameTypeDescription
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", "");