Skip to main content

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.

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

ParameterTypeDescription
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
statusenumComplianceAgeStatus.Adult: Is an adult
ComplianceAgeStatus.Minor: Is a minor
ComplianceAgeStatus.BelowGrade: Age is below game requirements
ComplianceAgeStatus.UnKnown: Unknown

Default 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);