User Information and Adult Status for Compliance Settings (ComplianceMultiSetStatusWithAdultCheckStatus)
AndroidiOSWindows
Supported in: LI PASS V1.12
If you are using the Unity engine, please see Unity SDK's ComplianceMultiSetStatusWithAdultCheckStatus.
Supported in: LI PASS V1.12
If you are using the Unity engine, please see Unity SDK's ComplianceMultiSetStatusWithAdultCheckStatus.
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,
const bool isUid,
const int32 uiType);
Parameter Instructions
| Parameters | Type | Explanation |
|---|---|---|
| openid | FString | OpenID, obtained from AuthResult |
| token | FString | Token, obtained from AuthResult |
| region | FString | Numeric codes of countries or regions as per ISO 3166-1 For example, 156 represents China, and 040 represents Austria. |
| adultCheckStatus | int32 | Player's adult status 0: Not set 1: Adult |
| compareAge | int32 | Age requirement for the game |
| certificateType | int32 | 0: No certification needed 1: Self-certification 2: Credit card certification 3: Email certification |
| extraJson | FString | Additional information |
| channelId | int32 | ChannelID, obtained from AuthResult |
| isUid | bool | Set compliance information using uid instead of openid; business does not need to focus on it, keep default as false |
| uiType | int32 | UiType, obtained from ComplianceResult. Generally, a value of 1 indicates adult status. |
Observers
The callback processing interface is ComplianceResultObserver.The callback data structure is ComplianceResult.
The callback ID is kMethodIDComplianceMultiSetStatus.
Code example
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;
int uiType = 1;
UINTLSDKAPI::ComplianceMultiSetStatusWithAdultCheckStatus(openID,token,region,adult_check_status,compare_age,certificate_type,"{}", channelID, isUid, uiType);