Skip to main content

Compliance Settings User Information and Birthday (ComplianceSetUserInfoWithBirthday)

AndroidiOSPC

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

Setting player region and birthday in compliance procedure.

Function definition​

public static void ComplianceSetUserInfoWithBirthday(string region, string birthday);

Parameter Instructions​

ParametersTypeExplanation
regionstringISO 3166-1 Numeric code for a country or region
For example, 156 represents China, and 040 represents Austria
birthdaystringPlayer's birthdate
Format supports yyyy-mm or yyyy-mm-dd

Observers​

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

The callback ID is INTL_COMPLIANCE_SET_USER_INFO_WITH_BIRTHDAY.

Code example​

INTLAPI.ComplianceSetUserInfoWithBirthday("040","2000-01-01");