AppsFlyerConsent
Visão Geral
AppsFlyerConsent
encapsulates the methods for acquiring consent data required by the Digital Marketing Act (DMA).
Métodos
forGDPRUser
Assinatura do método
public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)
Descrição
Acquires user consent for data usage and ad personalization. Call the function when DMA is applicable to the user.
Argumentos de entrada
Tipo | Nome | Descrição |
---|---|---|
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. |
Retorna
Tipo | Descrição |
---|---|
AppsFlyerConsent | An object containing user consent data |
Exemplo de uso
AppsFlyerConsent gdprUserConsent = AppsFlyerConsent.forGDPRUser(hasConsentForDataUsage, hasConsentForAdsPersonalization);
forNonGDPRUser
Assinatura do método
public AppsFlyerConsent forNonGDPRUser()
Descrição
Return an empty AppsFlyerConsent object without any consent data. Call the method when DMA is not applicable to the user.
Retorna
Tipo | Descrição |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
Exemplo de uso
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
Atualizado 6 meses atrás