cmpUIStatusChanged(info: DisplayInfo)
to inform when the CMP UI status is changed.ChoiceCmp.shared.sdkVersion
.usRegulationApplies
in the PingResponse
model to inform whether the US regulation is applicable at any point of time.cmpDidShow(info:PingResponse)
callback. Use cmpUIStatusChanged(info: DisplayInfo)
instead.GDPRData
in an asynchronous manner.
ChoiceCmp.shared.getGDPRData { gdprData in
print(gdprData.tcString)
print(gdprData.gppString)
}
getTCString
and getGPPString
API, use getGDPRData
API instead.showUSRegulations(ccpaDelegate: )
.didReceiveUSRegulationsConsent(usRegData: )
to retrieve the MSPA consent values.userDidMoveToOtherState()
. This callback will be triggered when the user moves to a different state accompanied by a change of regulations.didReceiveIABVendorConsent
callback has been updated to didReceiveIABVendorConsent(gdprData: GDPRData, updated: Bool)
. GDPRData
will entail both TC String
and GPP String
.GPP String
in GDPRData
, privacyEncodingMode
has also been added to indicate which encoding mode has been set in the portal.ChoiceStyle
API has been updated to accept dark and light mode colors using ChoiceColor
API:
let colors = ChoiceColor()
colors.dividerColor = "#CCBBFF"
ChoiceStyle(preferredThemeMode: .auto, lightModeColors: colors, darkModeColors: colors)
showCCPA(ccpaDelegate: )
API for displaying CCPA popup. Use showUSRegulations(ccpaDelegate: )
instead.showGoogleBasicConsent(delegate: )
.didReceiveGoogleBasicConsentChange(consents: )
, which will trigger and provide the consent values.startChoice
API by incorporating the gbcDelegate
parameter. Setting this delegate to receive the corresponding callback is imperative.showCCPA(ccpaDelegate: )
.startCCPA(pcode: , ccpaDelegate: )
API for displaying CCPA popup. You should use showCCPA(ccpaDelegate: )
instead.didReceiveIABVendorConsent
callback. This enhancement ensures a more seamless and predictable execution of concurrent tasks, contributing to a smoother user experience.
let style = ChoiceStyle(preferredThemeMode: .auto, lightThemeStyleSheet: "LightStyleSheet", darkThemeStyleSheet: "DarkStyleSheet")
ChoiceCmp.shared.startChoice(pcode: "< YOUR PCODE >", delegate: self, style: style)
By installing this SDK update, you agree that your Children Privacy Compliance setting remains accurate or that you will update that setting, whenever there is a change in your app's audience. You may update the app's Children Privacy Compliance settings at https://publisher.inmobi.com/my-inventory/app-and-placements.