ManagedConsent

constructor(cmp: CMP, context: Context, delegate: ManagedConsent.ManagedConsentDelegate)

Will present a dialog for the users to grant or withhold their consent.

Parameters

cmp

Instance of CMP to be used.

context

The Context of your application.

delegate

The ManagedConsentDelegate instance. Must not be null.


constructor(cmp: CMP, context: Context, delegate: ManagedConsent.ManagedConsentDelegate, showIfNeededSetting: ManagedConsent.ShowIfNeededSetting)

Parameters

cmp

Instance of CMP to be used.

context

The Context of your application.

delegate

The ManagedConsentDelegate instance. Must not be null.

showIfNeededSetting

ShowIfNeededSetting setting how the showIfNeeded method should behave. ShowIfNeededSetting.SERVER_SIDE_CONTROL by default.