Submit user birth date and year (ComplianceCommitBirthday, V1.16 is deprecated)
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
| Parameter | Type | Explanation |
|---|---|---|
| BirthdayYear | int32 | Birth Year |
| BirthdayMonth | int32 | Birth Month |
| BirthdayDay | int32 | Birth 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);