ManagedConsentDelegate
/**
* Notifies about the need to show the consent dialog.
*/
interface ManagedConsentDelegate {
/**
* Notifies that [ManagedConsent] needs to show a consent dialog. After receiving this notification, you should pause your application and call the [showIfNeeded] method.
*
* @param managedConsent The [ManagedConsent] instance that requests UI.
*/
fun managedConsentNeedsUserInterface(managedConsent: ManagedConsent)
/**
* Notifies that the used [CMP] has finished updating consent.
* @param state The [ManagedConsentState] informing about consent given by the user.
*/
fun managedConsentCMPFinished(state: ManagedConsentState)
/**
* Notifies that the used [CMP] failed to load.
*
* @param managedConsent @param managedConsent The [ManagedConsent] instance.
* @param error The description of what went wrong
*/
fun managedConsentCMPFailedToLoad(managedConsent: ManagedConsent, error: String?)
/**
* Notifies that the used [CMP] failed to show.
*
* @param managedConsent @param managedConsent The [ManagedConsent] instance.
* @param error The description of what went wrong
*/
fun managedConsentCMPFailedToShow(managedConsent: ManagedConsent, error: String?)
}
Last updated