AppsFlyerConsent
概要
AppsFlyerConsent
encapsulates the properties for acquiring consent data required by the Digital Marketing Act (DMA).
Initializers
initForGDPRUser
引数の入力
タイプ | 名前 | 詳細 |
---|---|---|
Boolean | forGDPRUserWithHasConsentForDataUsage | 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. |
使用例
// If the user is subject to DMA - collect the consent data
// or retrieve it from the storage
// Set the consent data to the SDK:
var gdprConsent = AppsFlyerConsent(forGDPRUserWithHasConsentForDataUsage: true, hasConsentForAdsPersonalization: true)
AppsFlyerLib.shared().setConsentData(gdprConsent)
initForNonGDPRUser
引数の入力
None
使用例
// If the user is not subject to DMA:
var nonGdprUser = AppsFlyerConsent(nonGDPRUser: ())
AppsFlyerLib.shared().setConsentData(nonGdprUser)
更新済 7か月前