User Information and Adult Status for Compliance Settings (ComplianceMultiSetStatusWithAdultCheckStatus)
AndroidiOSWindows
Supported in: LI PASS V1.12
If you are using Unreal Engine, see Unreal Engine SDK's ComplianceMultiSetStatusWithAdultCheckStatus.
Supported in: LI PASS V1.12
If you are using Unreal Engine, see Unreal Engine SDK's ComplianceMultiSetStatusWithAdultCheckStatus.
Set and synchronize region and adult status.
Function Definition
public static void ComplianceMultiSetStatusWithAdultCheckStatus(string openid, string token, string region, int adult_check_status, int compare_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 | ISO 3166-1 numeric code for countries or regions For example, 156 represents China, 040 represents Austria |
| adult_check_status | int | Adult status of the player 0: Not set 1: Adult |
| compare_age | int | Age requirement for the game |
| certificate_type | int | 0: No certification needed 1: Self-certification 2: Credit card certification 3: Email certification |
| extra | String | Additional information |
| channel_id | int | ChannelID, obtained from AuthResult |
| is_uid | bool | Set compliance information using uid instead of openid; business does not need to focus on it, keep default as false |
| uiType | int32 | UiType, obtained from ComplianceResult, generally 1 for adult status |
Observers
Callback handling interface is ComplianceResultObserver.Callback data structure is ComplianceResult.
The callback ID is INTL_COMPLIANCE_MULTI_SET_STATUS.
Code example
string openID = "123456789";
string token = "qwewerasd123456789qwewer";
string region = "410";
int adult_check_status = 0;
int compare_age = 18;
int certificate_type = 1;
int channelID = 131;
bool is_uid = false;
int uiType = 1;
INTLAPI.ComplianceMultiSetStatusWithAdultCheckStatus(openID,token,region,adult_check_status,compare_age,certificate_type,"{}", channelID, false, uiType);