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
public static void SetConsent(FINTLConsentStatus status, string types = "", string 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 blank, use the value of ANALYTICS_CONSENT_REQUIRED_TYPE from INTLConfig.ini. |
| specificChannel | string | UA channel requiring special settings | Optional. If left blank, use the value of ANALYTICS_CONSENT_CHANNEL from INTLConfig.ini. |
User Consent Status (FINTLConsentStatus)
| Type | Description |
|---|---|
| kConsentStatusDenied | User does not agree |
| kConsentStatusGranted | User agreed |
Code example
INTLAPI.SetConsent(kConsentStatusGranted);