Skip to main content

ComplianceSetUserInfoWithBirthAge

AndroidiOSWindows
Available from: LI PASS V1.12
If you were looking for the method for use with Unreal Engine, see ComplianceSetUserInfoWithBirthAge for Unreal Engine SDK.

Set region and age.

Function definition

public static void ComplianceSetUserInfoWithBirthAge(string region, int birthAge)

Input parameters

ParameterTypeDescription
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
birthAgeintAge at birth, must be greater than 0

Observers

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

The callback methodID is INTL_COMPLIANCE_SET_USER_INFO_WITH_BIRTH_AGE

Code sample

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