GoogleUserMessagingPlatform Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
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)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eGlobally available type definitions provide ways to handle consent form loading, presentation, and information updates.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUMPConsentFormLoadCompletionHandler\u003c/code\u003e delivers a consent form and error status upon loading, enabling developers to proceed based on success or failure.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUMPConsentFormPresentCompletionHandler\u003c/code\u003e is triggered after a consent form is presented, notifying developers about the presentation completion and any potential errors.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUMPConsentInformationUpdateCompletionHandler\u003c/code\u003e signals the completion of a consent information request, providing an error status to indicate success or failure of the update.\u003c/p\u003e\n"]]],[],null,["Type-Definitions\n\nThe following type definitions are available globally.\n- `\n ``\n ``\n `\n\n [UMPConsentFormLoadCompletionHandler](#/c:UMPConsentForm.h@T@UMPConsentFormLoadCompletionHandler)`\n ` \n Provides a nonnull consentForm and a nil error if the load succeeded. Provides a nil\n consentForm and a nonnull error if the load failed. \n\n Declaration \n Swift \n\n typealias UMPConsentFormLoadCompletionHandler = (ConsentForm?, (any Error)?) -\u003e Void\n\n Objective-C \n\n typedef void (^UMPConsentFormLoadCompletionHandler)(/ad-manager/mobile-ads-sdk/ios/privacy/api/reference/Classes/UMPConsentForm *_Nullable,\n NSError *_Nullable)\n\n- `\n ``\n ``\n `\n\n [UMPConsentFormPresentCompletionHandler](#/c:UMPConsentForm.h@T@UMPConsentFormPresentCompletionHandler)`\n ` \n Called after presentation of a UMPConsentForm finishes. \n\n Declaration \n Swift \n\n typealias UMPConsentFormPresentCompletionHandler = ((any Error)?) -\u003e Void\n\n Objective-C \n\n typedef void (^UMPConsentFormPresentCompletionHandler)(NSError *_Nullable)\n\n- `\n ``\n ``\n `\n\n [UMPConsentInformationUpdateCompletionHandler](#/c:UMPConsentInformation.h@T@UMPConsentInformationUpdateCompletionHandler)`\n ` \n Called when the consent info request completes. Error is nil on success, and non-nil if the\n update failed. \n\n Declaration \n Swift \n\n typealias UMPConsentInformationUpdateCompletionHandler = ((any Error)?) -\u003e Void\n\n Objective-C \n\n typedef void (^UMPConsentInformationUpdateCompletionHandler)(NSError *_Nullable)"]]