AATManagedConsentDelegate

@objc public protocol AATManagedConsentDelegate: AnyObject {

    /// CMP is ready and needs to be shown
    /// - Parameter managedConsent: an instance of ``AATManagedConsent``.
    func managedConsentNeedsUserInterface(_ managedConsent: AATManagedConsent)

    /// The user finished his consent choice
    /// - Parameter state: an instance of the ``AATManagedConsentState`` enum.
    func managedConsentCMPFinished(with state: AATManagedConsentState)

    /// The managed consent failed to load the CMP
    /// - Parameter managedConsent: an instance of ``AATManagedConsent``.
    /// - Parameter error: a String represents the loading error.
    func managedConsentCMPFailedToLoad(_ managedConsent: AATManagedConsent, with error: String)

    /// The managed consent failed to show the CMP
    /// - Parameter managedConsent: an instance of ``AATManagedConsent``.
    /// - Parameter error: a String represents the showing error.
    func managedConsentCMPFailedToShow(_ managedConsent: AATManagedConsent, with error: String)
}

Last updated