Skip to main content

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

AndroidiOSWindows
If you're using Unreal Engine, see the ComplianceCommitBirthday for 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

如果玩家输入的生日为判定当天的日期 (同月同日):

  • 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

ParameterTypeExplanation
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);