ComplianceSetUserInfoWithAgeStatus
AndroidiOSWindows
Available from: LI PASS V1.12
If you were looking for the method for use with Unreal Engine, see ComplianceSetUserInfoWithAgeStatus for Unreal Engine SDK.
Available from: LI PASS V1.12
If you were looking for the method for use with Unreal Engine, see ComplianceSetUserInfoWithAgeStatus for Unreal Engine SDK.
Set region and adult status.
Function definition
public static void ComplianceSetUserInfoWithAgeStatus(string region, ComplianceAgeStatus status)
public enum ComplianceAgeStatus
{
BelowGrade = -2,
Minor = -1,
UnKnown = 0,
Adult = 1,
}
Input parameters
Parameter | Type | Description |
---|---|---|
region | string | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria |
status | enum | ComplianceAgeStatus.Adult : Is an adultComplianceAgeStatus.Minor : Is a minorComplianceAgeStatus.BelowGrade : Age is below game requirementsComplianceAgeStatus.UnKnown : UnknownDefault value: ComplianceAgeStatus.UnKnown |
Observers
The callback processing interface is ComplianceResultObserver. The callback data structure is ComplianceResult。
The callback methodID is INTL_COMPLIANCE_SET_USER_INFO_WITH_AGE_STATUS
。
Code sample
// Save the player area and set it to adult status
INTLAPI.ComplianceSetUserInfoWithAgeStatus("040",ComplianceAgeStatus.Adult);