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
Jenis | Nama | Deskripsi |
---|---|---|
Boolean | hasConsentForDataUsage | Indicates whether the user give consent to send their user data to Google. |
Boolean | hasConsentForAdsPersonalization | Indicates whether the user consented to use their data for personalized advertising. |
Kembali
Jenis | Deskripsi |
---|---|
AppsFlyerConsent | An 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
Jenis | Deskripsi |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
Contoh penggunaan
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
Diperbarui 10 bulan yang lalu