Vue d'ensemble

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

Méthodes

forGDPRUser

Signature de la méthode

public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)

Description
Acquires user consent for data usage and ad personalization. Call the function when GDPR is applicable to the user.

Arguments d'entrée

TypeNomDescription
BooléenhasConsentForDataUsageIndicates whether the user consented to share. their data usage
BooléenhasConsentForAdsPersonalizationIndicates whether the user consented to share their data for ad optimization.

Retours

TypeDescription
AppsFlyerConsentAn object containing user consent data

Exemple d'utilisation

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

forNonGDPRUser

Signature de la méthode

public AppsFlyerConsent forNonGDPRUser()

Description
Return an empty AppsFlyerConsent object without any consent data. Call the method when GDPR is not applicable to the user.

Retours

TypeDescription
AppsFlyerConsentAn empty object without any consent data.

Exemple d'utilisation

val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()