Skip to main content

Compliance setting for user information and age (ComplianceSetUserInfoWithBirthAge)

AndroidiOSWindows
Supported on: LI PASS V1.12
If you are using the Unreal Engine, see Unreal Engine SDK's ComplianceSetUserInfoWithBirthAge.

Set region and age.

Function Definition

public static void ComplianceSetUserInfoWithBirthAge(string region, int birthAge)

Parameter Instructions

ParametersTypeExplanation
regionstringNumeric codes of countries or regions as per ISO 3166-1
For 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);