Compliance setting for user information and age (ComplianceSetUserInfoWithBirthAge)
AndroidiOSPC
Available from: LI PASS V1.12
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
| Parameter | Type | Explanation |
|---|---|---|
| region | string | Numeric codes of countries or regions as per ISO 3166-1For example, 156 represents China, and 040 represents Austria. |
| birthAge | int | Birth 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);