Skip to main content

ComplianceMultiSetStatusWithAdultCheckStatus

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

Set and synchronize region and adult status.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void ComplianceMultiSetStatusWithAdultCheckStatus(
const FString openid,
const FString token,
const FString region,
const int32 adultCheckStatus,
const int32 compareAge,
const int32 certificateType,
const FString extraJson,
const int32 channelId);

Input parameters

ParameterTypeDescription
openidFStringOpenID obtained from AuthResult
tokenFStringToken obtained from AuthResult
regionFStringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
adultCheckStatusint32Adult status of the player
0: Not set
1: Adult
compareAgeint32Minimum age to enter the game
certificateTypeint320: Not required
1: Self-verification
2: Credit card
3: Email
extraJsonFStringExtra information
channelIdint32ChannelID obtained from AuthResult
isUidboolWhether to set compliance information with uid instead of openid. Set to false by default, this value does not need to be changed and can be ignored.

Observers

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

The callback methodID is kMethodIDComplianceMultiSetStatus.

Code sample

FString token = "qwewerasd123456789qwewer";
FString region = "413";
int adult_check_status = 0;
int compare_age = 18;
int certificate_type = 1;
int channelID = 131;
bool isUid = false;
UINTLSDKAPI::ComplianceMultiSetStatusWithAdultCheckStatus(openID,token,region,adult_check_status,compare_age,certificate_type,"{}", channelID, isUid);