AppsFlyerConsent
Обзор
AppsFlyerConsent
encapsulates the methods for acquiring consent data required by the Digital Marketing Act (DMA).
Методы
forGDPRUser
Сигнатура метода
public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)
Описание
Acquires user consent for data usage and ad personalization. Call the function when DMA is applicable to the user.
Входные аргументы
Тип | Имя | Описание |
---|---|---|
Логическое значение | hasConsentForDataUsage | Indicates whether the user give consent to send their user data to Google. |
Логическое значение | hasConsentForAdsPersonalization | Indicates whether the user consented to use their data for personalized advertising. |
Возвращаемые значения
Тип | Описание |
---|---|
AppsFlyerConsent | An 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 DMA is not applicable to the user.
Возвращаемые значения
Тип | Описание |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
Пример использования
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
Изменения сохранены 5 месяцев назад