Compliance Settings - User Region and Birthday (ComplianceMultiSetStatusWithBirthday)
AndroidiOSWindows
Supported in: LI PASS V1.12
If you are using Unreal Engine, see Unreal Engine SDK's ComplianceMultiSetStatusWithBirthday.
Supported in: LI PASS V1.12
If you are using Unreal Engine, see Unreal Engine SDK's ComplianceMultiSetStatusWithBirthday.
Set and sync region and birthday.
Function Definition
public static void ComplianceMultiSetStatusWithBirthday(string openid, string token, string region, string birthday, int certificate_type, string extra, int channel_id)
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| openID | string | OpenID, obtained from AuthResult |
| token | String | Token, obtained from AuthResult |
| region | string | Numeric codes of countries or regions as per ISO 3166-1 For example, 156 represents China, and 040 represents Austria. |
| birthday | String | Date of birth in the format: yyyy-mm-dd |
| 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, typically 3 for birthday |
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";
string birthday = "1970-01-01";
int certificate_type = 1;
int channelID = 131;
bool is_uid = false;
int uiType = 3;
INTLAPI.ComplianceMultiSetStatusWithBirthday(openID,token,region,birthday,certificate_type,"{}", channelID, false, is_uid, uiType);