RequestVerifyCode
AndroidiOSWindows
If you were looking for the method for use with Unity, see RequestVerifyCode for Unity SDK.
If you were looking for the method for use with Unity, see RequestVerifyCode for Unity SDK.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool RequestVerifyCode(
const FString Account,
const UVerifyCodeType CodeType,
const FString PhoneAreaCode,
const FString ExtraJson = "{}");
Input parameters
Parameter | Type | Description |
---|---|---|
Account | FString | Account, which can be registered with an email address or phone number. |
CodeType | UVerifyCodeType | Request verification code type |
PhoneAreaCode | FString | Phone area code, such as "86" for China. If you register an account with an email address, the field is left empty. |
ExtraJson | FString | Extended information |
Observers
The callback processing interface is AuthAccountResultObserver. The callback data structure is AccountResult.
The callback methodID is kMethodIDAuthRequestVerifyCode
.
Code sample
UINTLSDKAPI::RequestVerifyCode("youremail@sample.com", UVerifyCodeType::kVerifyCodeTypeRegister, "");