Skip to main content

ModifyAccountWithLoginState

AndroidiOSWindows
If you were looking for the method for use with Unity, see ModifyAccountWithLoginState for Unity SDK.

After logging in, you can modify the current account in the current login state.

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
OldPhoneAreaCodeFStringThe phone area code of the old account, fill in the blanks if the account is an email
NewAccountFStringNew account
NewAccountVerifyCodeFStringVerification code of the new account
NewPhoneAreaCodeFStringPhone area code of the new account, fill in the blanks if the account is an email
ExtraJsonFStringExtended information

Observers

The callback processing interface is AuthAccountResultObserver. The callback data structure is AccountResult.

The callback methodID is kMethodIDAuthModifyAccount.

Code sample

UINTLSDKAPI::ModifyAccountWithLoginState("", "newaccount@email.com", "12345", "");