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
Tipo | Nombre | Descripción |
---|---|---|
Booleano | hasConsentForDataUsage | Indicates whether the user give consent to send their user data to Google. |
Booleano | hasConsentForAdsPersonalization | Indicates whether the user consented to use their data for personalized advertising. |
Devoluciones
Tipo | Descripción |
---|---|
AppsFlyerConsent | An 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
Tipo | Descripción |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
Ejemplo de uso
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
Actualizado hace 5 meses