AppsFlyerConsent
概要
AppsFlyerConsent
encapsulates the methods for acquiring consent data required by the Digital Marketing Act (DMA).
メソッド
forGDPRUser
メソッドのシグネチャ
public AppsFlyerConsent forGDPRUser(Boolean hasConsentForDataUsage, Boolean hasConsentForAdsPersonalization)
詳細
Acquires user consent for data usage and ad personalization. Call the function when DMA is applicable to the user.
引数の入力
タイプ | 名前 | 詳細 |
---|---|---|
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. |
返されるコード
タイプ | 詳細 |
---|---|
AppsFlyerConsent | An 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 DMA is not applicable to the user.
返されるコード
タイプ | 詳細 |
---|---|
AppsFlyerConsent | An empty object without any consent data. |
使用例:
val nonGdprUser = AppsFlyerConsent.forNonGDPRUser()
更新済 7か月前