SetConsent
AndroidiOS
If you were looking for the method for use with Unreal Engine, see SetConsent for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see SetConsent for Unreal Engine SDK.
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
public static void SetConsent(FINTLConsentStatus status, string types = "", string 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
INTLAPI.SetConsent(kConsentStatusGranted);