ComplianceCommitBirthday (Deprecated since V1.16, use ComplianceSetUserInfoWithBirthday instead)
AndroidiOSWindows
If you were looking for the method for use with Unity, see ComplianceCommitBirthday for Unity SDK.
If you were looking for the method for use with Unity, see ComplianceCommitBirthday for Unity SDK.
When the game cannot determine whether the user is underage, or when the user enters the game for the first time, the game must prompt the user to enter the date of birth. The game then determines the adult status of the player and whether authorization is required.
caution
If the birthday entered by the player is the current date (same month, same day):
- For versions earlier than Player Network SDK V1.16, the system does not count the current date when determining the age of the player, so the determined age of the player is one year younger than his or her actual age.
- For versions later than Player Network SDK V1.16, the system counts the current date when determining the age of the player, so the determined age of the player is his or her actual age.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceCommitBirthday(
const int32 BirthdayYear,
const int32 BirthdayMonth,
const int32 BirthdayDay);
Input parameters
Parameter | Type | Description |
---|---|---|
BirthdayYear | int32 | Year of birth |
BirthdayMonth | int32 | Month of birth |
BirthdayDay | int32 | Day of birth |
Observers
The callback processing interface is ComplianceResultObserver. The callback data structure is ComplianceResult.
The callback methodID is kMethodIDComplianceCommitBirthday
.
Code sample
UINTLSDKAPI::ComplianceCommitBirthday(2020, 12, 12);