AppsFlyerConsent

Overview

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

Metode

forGDPRUser

Signature metode

public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)

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

Argumen input

JenisNamaDeskripsi
BooleanhasConsentForDataUsageIndicates whether the user give consent to send their user data to Google.
BooleanhasConsentForAdsPersonalizationIndicates whether the user consented to use their data for personalized advertising.

Kembali

JenisDeskripsi
AppsFlyerConsentAn object containing user consent data

Contoh penggunaan

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

forNonGDPRUser

Signature metode

public AppsFlyerConsent forNonGDPRUser()

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

Kembali

JenisDeskripsi
AppsFlyerConsentAn empty object without any consent data.

Contoh penggunaan

val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()