Skip to main content

注册(Register)

AndroidiOSWindows
如果您使用的是 Unity 引擎,请参见 Unity SDK 的 Register

注册并登录账号。

函数定义

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

入参说明

note

请注意用户名和密码的 规则

参数类型说明
账号FString账号,可用邮箱和手机号注册
密码FString更多信息,请参见 密码规则
VerifyCodeFString验证码
PhoneAreaCodeFString手机区域码,例如 "86" 为中国。如果用邮件地址注册账号,字段则为空。
UserProfileFINTLAccountProfile账号的个人信息,包含,用户名,生日,国家地区等。

回调处理

回调处理接口是 AuthResultObserver。回调数据结构是 AuthResult

回调 ID 是 kMethodIDAuthRegister

代码示例

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