Skip to main content

Compliance setting for user information and age (ComplianceSetUserInfoWithBirthAge)

AndroidiOSPC
Available from: LI PASS V1.12

If you are using Unreal Engine, see ComplianceSetUserInfoWithBirthAge in the Unreal Engine SDK.

Set the region and birthdate.

Function definition​

public static void ComplianceSetUserInfoWithBirthAge(string region, int birthAge)

Parameter Instructions​

ParameterTypeExplanation
regionstringNumeric codes of countries or regions as per ISO 3166-1For example, 156 represents China, and 040 represents Austria.
birthAgeintBirth age, must be greater than 0

Observers​

The callback handler interface is ComplianceResultObserver.The callback data structure is ComplianceResult.

Callback ID is INTL_COMPLIANCE_SET_USER_INFO_WITH_BIRTH_AGE.

Code example​

// Save player's region and set the player's age
INTLAPI.ComplianceSetUserInfoWithBirthAge("040",20);