AppsFlyerConsent

Resumen General

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

Métodos

forGDPRUser

Firma de método

public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)

Descripción
Acquires user consent for data usage and ad personalization. Call the function when DMA is applicable to the user.

Argumentos de entrada

TipoNombreDescripción
BooleanohasConsentForDataUsageIndicates whether the user give consent to send their user data to Google.
BooleanohasConsentForAdsPersonalizationIndicates whether the user consented to use their data for personalized advertising.

Devoluciones

TipoDescripción
AppsFlyerConsentAn object containing user consent data

Ejemplo de uso

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

forNonGDPRUser

Firma de método

public AppsFlyerConsent forNonGDPRUser()

Descripción
Return an empty AppsFlyerConsent object without any consent data. Call the method when DMA is not applicable to the user.

Devoluciones

TipoDescripción
AppsFlyerConsentAn empty object without any consent data.

Ejemplo de uso

val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()