Skip to main content

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

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

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceCommitBirthday(
const int32 BirthdayYear,
const int32 BirthdayMonth,
const int32 BirthdayDay);

Parameter description

ParameterTypeExplanation
BirthdayYearint32Birth Year
BirthdayMonthint32Birth Month
BirthdayDayint32Birth Day

Observers

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

The callback ID is kMethodIDComplianceCommitBirthday.

Code Sample

UINTLSDKAPI::ComplianceCommitBirthday(2020, 12, 12);