Skip to main content

ComplianceSetUserInfoWithBirthAge

AndroidiOSWindows
Available from: LI PASS V1.12
If you were looking for the method for use with Unity, see ComplianceSetUserInfoWithBirthAge for Unity SDK.

Set region and age.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceSetUserInfoWithBirthAge(
const FString Region,
const int32 BirthAge = 0);

Input parameters

ParameterTypeDescription
RegionFStringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
BirthAgeint32Age at birth, must be greater than 0

Observers

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

The callback methodID is kMethodIDComplianceSetUserInfoWithBirthAge

Code sample

// Save the player's region and set the player's age
UINTLSDKAPI::ComplianceSetUserInfoWithBirthAge("040",20);