SetConsent
Sets consent for EU user consent policy. Call SetConsent
to update the user consent status after the app is launched.
The user consent status is reset every time the app is launched, call SetConsent
every time after app launch if update of user consent is required.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
void SetConsent(FINTLConsentStatus status, const FString types="", const FString specificChannel="");
Input parameters
Parameter | Type | Description | Remarks |
---|---|---|---|
status | FINTLConsentStatus | User consent status | required |
types | string | Types of permissions with user consent (separated by commas ',') | Optional, uses the value of ANALYTICS_CONSENT_REQUIRED_TYPE in INTLConfig.ini when empty |
specificChannel | string | UA channels that require special settings | Optional, uses the value of ANALYTICS_CONSENT_CHANNEL in INTLConfig.ini when empty |
Consent status (FINTLConsentStatus)
Type | Description |
---|---|
kConsentStatusDenied | Consent denied |
kConsentStatusGranted | Consent granted |
Code sample
UINTLSDKAPI::SetConsent(kConsentStatusGranted);