Skip to main content

Set whether the user is of legal age (ComplianceSetAdulthood)

AndroidiOSWindows
If you're using the Unity engine, see the ComplianceSetAdulthood for Unity SDK.

Proactively set whether the user is of legal age.

Function Definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ComplianceSetAdulthood(UComplianceAgeStatus Status);

Input Parameters

ParametersTypeExplanation
StatusUComplianceAgeStatusUser age indicator
-2: Below game rating age
-1: Minor
0: Not set
1: Adult

Callback processing

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

Callback ID is kMethodIDComplianceSetAdulthood.

Code example

UINTLSDKAPI::ComplianceSetAdulthood(UComplianceAgeStatus::kAdult);