Skip to main content

Submit user birth date and year (ComplianceCommitBirthday, V1.16 is deprecated)

AndroidiOSPC

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

When players first enter the game or if their minor status can't be determined, the game needs to prompt them to enter their birth date to assess adulthood status and whether verification is needed.

caution

If the birthday entered by the player matches the current date (same month and day):

  • Before Player Network SDK V1.16, the system did not account for the current date when determining player age, hence the assessed age was one year younger than the actual age.
  • After Player Network SDK V1.16, the system calculates player age including the current date, thus the assessed age matches the actual age.

Function definition​

public static void ComplianceCommitBirthday(string birthday);

Parameter description​

ParametersTypeExplanation
birthdaystringPlayer birth date
Supported format yyyy-mm or yyyy-mm-dd

Observers​

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

The callback ID is INTL_COMPLIANCE_COMMIT_BIRTHDAY.

Code Sample​

string birthday = "1970-01-01";
INTLAPI.ComplianceCommitBirthday(birthday);