Обзор

AppsFlyerConsent encapsulates the methods for acquiring consent data required by the Digital Marketing Act (DMA) under the GDPR regulation.

Методы

forGDPRUser

Сигнатура метода

public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)

Описание
Acquires user consent for data usage and ad personalization. Call the function when GDPR is applicable to the user.

Входные аргументы

ТипИмяОписание
Логическое значениеhasConsentForDataUsageIndicates whether the user consented to share. their data usage
Логическое значениеhasConsentForAdsPersonalizationIndicates whether the user consented to share their data for ad optimization.

Возвращаемые значения

ТипОписание
AppsFlyerConsentAn object containing user consent data

Пример использования

AppsFlyerConsent gdprUserConsent = AppsFlyerConsent.forGDPRUser(hasConsentForDataUsage, hasConsentForAdsPersonalization); 

forNonGDPRUser

Сигнатура метода

public AppsFlyerConsent forNonGDPRUser()

Описание
Return an empty AppsFlyerConsent object without any consent data. Call the method when GDPR is not applicable to the user.

Возвращаемые значения

ТипОписание
AppsFlyerConsentAn empty object without any consent data.

Пример использования

val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()