Skip to main content

Register (Register)

AndroidiOSPC

If you are using the Unity engine, please refer to Register in the Unity SDK.

Register and log in to the account.

Function definition​

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool Register(
const FString Account,
const FString Password,
const FString VerifyCode,
const FString PhoneAreaCode,
FINTLAccountProfile userProfile);

Input Parameters​

note

Please note the rules for user name and password.

ParametersTypeDescription
AccountFStringAccount, can register using email and phone number.
PasswordFStringFor more details, see Password Rules.
VerifyCodeFStringVerification code
PhoneAreaCodeFStringPhone area code, e.g., "86" for China.If using an email address to register an account, the field is empty.
UserProfileFINTLAccountProfileAccount personal information, including username, birthday, country, etc.

Observers​

The callback processing interface is AuthResultObserver.The callback data structure is AuthResult.

Callback ID is kMethodIDAuthRegister.

Code sample​

UINTLSDKAPI::Register("youremail@sample.com", "yourpassword", "12345", "", "yourusername", 1980, 1, 1, 0);