Skip to main content

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.

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

ParametersTypeExplanation
openidFStringOpenID, obtained in AuthResult
tokenFStringToken, obtained in AuthResult
regionFStringNumeric codes of countries or regions as per ISO 3166-1
For example, 156 represents China, and 040 represents Austria.
ageint32Age
certificateTypeint320: No certification
1: Self-certification
2: Credit card certification
3: Email certification
extraJsonFStringAdditional Information
channelIdint32ChannelID, obtained in AuthResult
isUidboolIndicates whether to use uid for compliance settings instead of openid; default value false, business confine changes.
uiTypeint32UiType, 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);