AppsFlyerConsent

Resumen General

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

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 GDPR is applicable to the user.

Argumentos de entrada

TipoNombreDescripción
BooleanohasConsentForDataUsageIndicates whether the user consented to share. their data usage
BooleanohasConsentForAdsPersonalizationIndicates whether the user consented to share their data for ad optimization.

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 GDPR is not applicable to the user.

Devoluciones

TipoDescripción
AppsFlyerConsentAn empty object without any consent data.

Ejemplo de uso

val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()