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)
}
@protocol AATManagedConsentDelegate
/// CMP is ready and needs to be shown
/// \param managedConsent an instance of <code>AATManagedConsent</code>.
- (void)managedConsentNeedsUserInterface:(AATManagedConsent * _Nonnull)managedConsent;
/// The user finished his consent choice
/// \param state an instance of the <code>AATManagedConsentState</code> enum.
- (void)managedConsentCMPFinishedWith:(enum AATManagedConsentState)state;
/// The managed consent failed to load the CMP
/// \param managedConsent an instance of <code>AATManagedConsent</code>.
/// \param error a String represents the loading error.
- (void)managedConsentCMPFailedToLoad:(AATManagedConsent * _Nonnull)managedConsent with:(NSString * _Nonnull)error;
/// The managed consent failed to show the CMP
/// \param managedConsent an instance of <code>AATManagedConsent</code>.
/// \param error a String represents the showing error.
- (void)managedConsentCMPFailedToShow:(AATManagedConsent * _Nonnull)managedConsent with:(NSString * _Nonnull)error;
@end
Last updated