Compliance Setting User Region and Age (ComplianceMultiSetStatusWithAge)
AndroidiOSWindows
Supported in: LI PASS V1.12
If you are using Unreal Engine, see Unreal Engine SDK's ComplianceMultiSetStatusWithAge.
Supported in: LI PASS V1.12
If you are using Unreal Engine, see Unreal Engine SDK's ComplianceMultiSetStatusWithAge.
Set and synchronize region and age.
Function Definition
public static void ComplianceMultiSetStatusWithAge(string openid, string token, string region, int age, int certificate_type, string extra, int channel_id, bool is_uid, int uiType)
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| openID | string | OpenID, obtained from AuthResult |
| token | string | Token, obtained from AuthResult |
| region | String | Digital code of the country or region according to ISO 3166-1 For example, 156 represents China, 040 represents Austria |
| age | int | Age |
| certificate_type | int | 0: No certification 1: Self-certification 2: Credit card certification 3: Email certification |
| extra | String | Additional Information |
| channel_id | int | ChannelID, obtained from AuthResult |
| is_uid | bool | Indicates whether to use uid for compliance settings instead of openid; default value false, business confine changes. |
| uiType | int32 | UiType, obtained from ComplianceResult. The age is usually 4; for Korea mobile, it is 2. |
Observers
The callback interface is ComplianceResultObserver.The callback data structure is ComplianceResult.
The callback ID is INTL_COMPLIANCE_MULTI_SET_STATUS.
Code example
string openID = "123456789";
string token = "qwewerasd123456789qwewer";
string region = "413";
int age = 18;
int certificate_type = 1;
int channelID = 131;
bool is_uid = false;
int uiType = 4;
ComplianceApiCall.Instance.ComplianceMultiSetStatusWithAge(openID,token,region,age,certificate_type,"{}", channelID, is_uid, uiType);