AppsFlyerConsent

概要

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

メソッド

forGDPRUser

メソッドのシグネチャ

public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)

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

引数の入力

タイプ名前詳細
BooleanhasConsentForDataUsageIndicates whether the user consented to share. their data usage
BooleanhasConsentForAdsPersonalizationIndicates whether the user consented to share their data for ad optimization.

返されるコード

タイプ詳細
AppsFlyerConsentAn object containing user consent data

使用例:

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

forNonGDPRUser

メソッドのシグネチャ

public AppsFlyerConsent forNonGDPRUser()

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

返されるコード

タイプ詳細
AppsFlyerConsentAn empty object without any consent data.

使用例:

val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()