ComplianceCommitBirthday (Deprecated since V1.16, use ComplianceSetUserInfoWithBirthday instead)
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ComplianceCommitBirthday for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see ComplianceCommitBirthday for Unreal Engine 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
public static void ComplianceCommitBirthday(string birthday);
Input parameters
Parameter | Type | Description |
---|---|---|
birthday | string | Date of birth Format: yyyy-mm or yyyy-mm-dd |
Observers
The callback processing interface is ComplianceResultObserver. The callback data structure is ComplianceResult.
The callback methodID is INTL_COMPLIANCE_COMMIT_BIRTHDAY
.
Code sample
string birthday = "1970-01-01";
INTLAPI.ComplianceCommitBirthday(birthday);