Compliance Setting User Region and Age (ComplianceMultiSetStatusWithAge)
AndroidiOSWindows
Supported in: LI PASS V1.12
If you are using the Unity engine, please see Unity SDK's ComplianceMultiSetStatusWithAge.
Supported in: LI PASS V1.12
If you are using the Unity engine, please see Unity SDK's ComplianceMultiSetStatusWithAge.
Set and synchronize region and age.
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceMultiSetStatusWithAge(
const FString openid,
const FString token,
const FString region,
const int32 age,
const int32 certificateType,
const FString extraJson,
const int32 channelId,
const bool isUid,
const int uiType);
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| openid | FString | OpenID, obtained in AuthResult |
| token | FString | Token, obtained in AuthResult |
| region | FString | Numeric codes of countries or regions as per ISO 3166-1 For example, 156 represents China, and 040 represents Austria. |
| age | int32 | Age |
| certificateType | int32 | 0: No certification 1: Self-certification 2: Credit card certification 3: Email certification |
| extraJson | FString | Additional Information |
| channelId | int32 | ChannelID, obtained in AuthResult |
| isUid | bool | Indicates whether to use uid for compliance settings instead of openid; default value false, business confine changes. |
| uiType | int32 | UiType, obtained in ComplianceResult; the usual age value is 4, for Korean mobile it is 2 |
Observers
The callback processing 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",
int age = 18,
int certificate_type = 1;
int channelID = 131;
bool isUid = false;
int uiType = 4;
UINTLSDKAPI::ComplianceMultiSetStatusWithAge(openID,token,region,age,certificate_type,"{}", channelID, isUid, uiType);