Skip to main content

EU User Consent Configuration (SetConsent)

AndroidiOS
If you are using the Unity engine, see Unity SDK's 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

ParametersTypeExplanationNote
statusFINTLConsentStatusUser Consent StatusRequired
typesStringTypes 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.
specificChannelStringUA channel requiring special settingsOptional. If left empty, the value of ANALYTICS_CONSENT_CHANNEL from INTLConfig.ini will be used.

User Consent Status (FINTLConsentStatus)

TypeDescription
kConsentStatusDeniedUser does not agree
kConsentStatusGrantedUser agreed

Code example

UINTLSDKAPI::SetConsent(kConsentStatusGranted);