Skip to main content

Register (Register)

AndroidiOSWindows
If you're using the Unity engine, see the Register for 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 username and password.

ParametersTypeExplanation
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);