Compliance Settings - User Region and Birthday (ComplianceMultiSetStatusWithBirthday)
AndroidiOSWindows
Supported in: LI PASS V1.12
If you are using the Unity engine, see Unity SDK's ComplianceMultiSetStatusWithBirthday.
Supported in: LI PASS V1.12
If you are using the Unity engine, see Unity SDK's ComplianceMultiSetStatusWithBirthday.
Set and sync region and birthday.
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceMultiSetStatusWithBirthday(
const FString openid,
const FString token,
const FString region,
const FString birthday,
const int32 certificateType,
const FString extraJson,
const int32 channelId,
const bool isUid,
const int32 uiType);
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| openid | FString | OpenID, obtain it from AuthResult |
| token | FString | Token, obtain it from AuthResult |
| region | FString | Numeric codes of countries or regions as per ISO 3166-1 For example, 156 represents China, and 040 represents Austria. |
| birthday | FString | Date of birth in the format: yyyy-mm-dd |
| certificateType | int32 | 0: No certification 1: Self-certification 2: Credit card certification 3: Email certification |
| extraJson | FString | Additional Information |
| channelId | int32 | ChannelID, obtain it from AuthResult |
| isUid | bool | Indicates whether to use uid for compliance settings instead of openid; default value false, business confine changes. |
| uiType | int32 | UiType, obtain it from ComplianceResult. Birthday is usually 3. |
Observers
The callback interface is ComplianceResultObserver.The callback data structure is ComplianceResult.
The callback ID is kMethodIDComplianceMultiSetStatus.
Code example
FString openID = "123456789";
FString token = "qwewerasd123456789qwewer";
FString region = "413",
FString birthday = "1970-01-01",
int certificate_type = 1;
int channelID = 131;
bool isUid = false;
int uiType = 3;
UINTLSDKAPI::ComplianceMultiSetStatusWithBirthday(openID, token, region, birthday, certificate_type, "{}", channelID, isUid, uiType);