EU User Consent Configuration (SetConsent)
Set EU user consent status.Invoke SetConsent after the app startup to update user consent status.
Each app startup will reset the user consent status. To update user consent status, invoke the SetConsent method every time the app starts.
Function Definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void SetConsent(FINTLConsentStatus status, const FString types="", const FString specificChannel="");
Input Parameters
| Parameters | Type | Explanation | Note |
|---|---|---|---|
| status | FINTLConsentStatus | User Consent Status | Required |
| types | String | Types of user consent permissions (separated by English comma ',') | Optional. If left empty, the value of ANALYTICS_CONSENT_REQUIRED_TYPE from INTLConfig.ini will be used. |
| specificChannel | String | UA channel requiring special settings | Optional. If left empty, the value of ANALYTICS_CONSENT_CHANNEL from INTLConfig.ini will be used. |
User Consent Status (FINTLConsentStatus)
| Type | Description |
|---|---|
| kConsentStatusDenied | User does not agree |
| kConsentStatusGranted | User agreed |
Code example
UINTLSDKAPI::SetConsent(kConsentStatusGranted);