Skip to main content

EU User Consent Configuration (SetConsent)

AndroidiOS
If you are using Unreal Engine, see Unreal Engine 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

public static void SetConsent(FINTLConsentStatus status, string types = "", string specificChannel = "");

Input Parameters

ParametersTypeExplanationNote
statusFINTLConsentStatusUser Consent StatusRequired
typesstringTypes of user consent permissions (separated by English comma ',')Optional. If left blank, use the value of ANALYTICS_CONSENT_REQUIRED_TYPE from INTLConfig.ini.
specificChannelstringUA channel requiring special settingsOptional. If left blank, use the value of ANALYTICS_CONSENT_CHANNEL from INTLConfig.ini.

User Consent Status (FINTLConsentStatus)

TypeDescription
kConsentStatusDeniedUser does not agree
kConsentStatusGrantedUser agreed

Code example

INTLAPI.SetConsent(kConsentStatusGranted);