注册(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 | 更多信息,请参见 密码规则。 |
| VerifyCode | FString | 验证码 |
| PhoneAreaCode | FString | 手机区域码,例如 "86" 为中国。如果用邮件地址注册账号,字段则为空。 |
| UserProfile | FINTLAccountProfile | 账号的个人信息,包含,用户名,生日,国家地区等。 |
回调处理
回调处理接口是 AuthResultObserver。回调数据结构是 AuthResult。
回调 ID 是 kMethodIDAuthRegister。
代码示例
UINTLSDKAPI::Register("youremail@sample.com", "yourpassword", "12345", "", "yourusername", 1980, 1, 1, 0);