Skip to main content

Register

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

This API is used to register and log in to accounts.

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

Take note about the username and password rule.

ParameterTypeDescription
AccountFStringAccount, which can be registered with an email address or phone number.
PasswordFStringPassword. For more information, see Password Rules.
VerifyCodeFStringVerification code
PhoneAreaCodeFStringPhone area code, such as "86" for China. If you register an account with an email address, the field is left empty.
UserProfileFINTLAccountProfilePersonal information, such as user name, birthday and more.

Observers

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

The callback methodID is kMethodIDAuthRegister.

Code sample

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