ComplianceMultiSetStatusWithAdultCheckStatus
AndroidiOSWindows
Available from: LI PASS V1.12
If you were looking for the method for use with Unreal Engine, see ComplianceMultiSetStatusWithAdultCheckStatus for Unreal Engine SDK.
Available from: LI PASS V1.12
If you were looking for the method for use with Unreal Engine, see ComplianceMultiSetStatusWithAdultCheckStatus for Unreal Engine SDK.
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)
Input parameters
Parameter | Type | Description |
---|---|---|
openID | string | OpenID obtained from AuthResult |
token | string | Token obtained from AuthResult |
region | string | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria |
adult_check_status | int | Adult status of the player 0: Not set 1: Adult |
compare_age | int | Minimum age to enter the game |
certificate_type | int | 0: Not required 1: Self-verification 2: Credit card 3: Email |
extra | string | Extra information |
channel_id | int | ChannelID obtained from AuthResult |
is_uid | bool | Whether to set compliance information with uid instead of openid. Set to false by default, this value does not need to be changed and can be ignored. |
Observers
The callback processing interface is ComplianceResultObserver. The callback data structure is ComplianceResult。
The callback methodID is INTL_COMPLIANCE_MULTI_SET_STATUS
.
Code sample
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;
INTLAPI.ComplianceMultiSetStatusWithAdultCheckStatus(openID,token,region,adult_check_status,compare_age,certificate_type,"{}", channelID, false);