ComplianceSetUserInfoWithAgeStatus
AndroidiOSWindows
Available from: LI PASS V1.12
If you were looking for the method for use with Unity, see ComplianceSetUserInfoWithAgeStatus for Unity SDK.
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
Parameter | Type | Description |
---|---|---|
Region | FString | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria |
Status | uint8 | EComplianceAgeStatus::kAdult : Is an adultEComplianceAgeStatus::kMinor : Is a minorEComplianceAgeStatus::kBelowGrade : Age is below game requirementsEComplianceAgeStatus::kUnknown : UnknownDefault 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);