AI-generated Key Takeaways
-
This documentation details globally available type definitions, including
UMPConsentFormLoadCompletionHandler
,UMPConsentFormPresentCompletionHandler
, andUMPConsentInformationUpdateCompletionHandler
. -
UMPConsentFormLoadCompletionHandler
provides a consent form and error status upon loading a form, indicating success or failure. -
UMPConsentFormPresentCompletionHandler
is invoked after a UMPConsentForm is presented, signaling completion with a potential error. -
UMPConsentInformationUpdateCompletionHandler
is called upon completion of a consent information request, providing error status for success or failure.
Type-Definitions
The following type definitions are available globally.
-
Provides a nonnull consentForm and a nil error if the load succeeded. Provides a nil consentForm and a nonnull error if the load failed.
Declaration
Swift
typealias UMPConsentFormLoadCompletionHandler = (ConsentForm?, (any Error)?) -> Void
Objective-C
typedef void (^UMPConsentFormLoadCompletionHandler)(UMPConsentForm *_Nullable, NSError *_Nullable)
-
Called after presentation of a UMPConsentForm finishes.
Declaration
Swift
typealias UMPConsentFormPresentCompletionHandler = ((any Error)?) -> Void
Objective-C
typedef void (^UMPConsentFormPresentCompletionHandler)(NSError *_Nullable)
-
Called when the consent info request completes. Error is nil on success, and non-nil if the update failed.
Declaration
Swift
typealias UMPConsentInformationUpdateCompletionHandler = ((any Error)?) -> Void
Objective-C
typedef void (^UMPConsentInformationUpdateCompletionHandler)(NSError *_Nullable)