enableConsentIntegration
fun enableConsentIntegration(cmpAdapter: CmpAdapter, enforcedSettings: (ConsentConfigurationBuilder) -> ConsentConfigurationBuilder? = null): TealiumConfig.Builder
Enable consent integration with a CmpAdapter.
If you enable consent integration events will only be tracked after the CmpAdapter returns a ConsentDecision, And only after a Consent Configuration is found for that adapter.
Make sure to properly configure consent either locally, remotely or programmatically for the provided CmpAdapter to ensure proper tracking.
Parameters
cmpAdapter
: The adapter that will report the ConsentDecision to the SDK
enforcedSettings
: An optional block called with a configuration builder, used to force some of the Consent Configuration properties. Properties set with this block will have precedence to local and remote settings.