Skip to main content

ComplianceSetUserInfoWithAgeStatus

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

Set region and adult status.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceSetUserInfoWithAgeStatus(const FString Region, EComplianceAgeStatus Status);

UENUM(BlueprintType)
enum class EComplianceAgeStatus :uint8 {
kMinor = 0, // -1 in c++
kUnknown = 1, // 0 in c++
kAdult = 2, // 1 in c++
kBelowGrade = 3,// -2 in c++
};

Input parameters

ParameterTypeDescription
RegionFStringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
Statusuint8EComplianceAgeStatus::kAdult: Is an adult
EComplianceAgeStatus::kMinor: Is a minor
EComplianceAgeStatus::kBelowGrade: Age is below game requirements
EComplianceAgeStatus::kUnknown: Unknown

Default value: EComplianceAgeStatus::kUnknown

Observers

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

The callback methodID is kMethodIDComplianceSetUserInfoWithAgeStatus

Code sample

// Save the player area and set it to adult status
UINTLSDKAPI::ComplianceSetUserInfoWithAgeStatus("040",EComplianceAgeStatus::kAdult);