GoogleUserMessagingPlatform Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
A single use consent form object.
Declaration
Swift
class ConsentForm : NSObject
Objective-C
@interface UMPConsentForm : NSObject
-
Consent information. All methods must be called on the main thread.
Declaration
Swift
class ConsentInformation : NSObject
Objective-C
@interface UMPConsentInformation : NSObject
-
Overrides settings for debugging or testing.
Declaration
Swift
class DebugSettings : NSObject, NSCopying
Objective-C
@interface UMPDebugSettings : NSObject <NSCopying>
-
Parameters sent on updates to user consent info.
Declaration
Swift
class RequestParameters : NSObject, NSCopying
Objective-C
@interface UMPRequestParameters : NSObject <NSCopying>
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\u003eThis documentation details globally available classes for managing user consent and privacy in iOS applications.\u003c/p\u003e\n"],["\u003cp\u003eThe classes include \u003ccode\u003eUMPConsentForm\u003c/code\u003e for displaying consent forms, \u003ccode\u003eUMPConsentInformation\u003c/code\u003e for accessing and updating user consent status, and \u003ccode\u003eUMPDebugSettings\u003c/code\u003e for testing and debugging purposes.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUMPRequestParameters\u003c/code\u003e class is used for configuring parameters when updating user consent information.\u003c/p\u003e\n"],["\u003cp\u003eEach class is presented with its declaration in both Swift and Objective-C for easy integration into iOS projects.\u003c/p\u003e\n"]]],["The document outlines four globally available classes: `UMPConsentForm`, a single-use consent form object; `UMPConsentInformation`, which manages consent data and requires main thread execution; `UMPDebugSettings`, for overriding settings during debugging; and `UMPRequestParameters`, for transmitting user consent information updates. Each class is defined with both Swift and Objective-C declarations, and the debug and request parameter classes conforms to the NSCopying protocol.\n"],null,["# GoogleUserMessagingPlatform Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [UMPConsentForm](/ad-manager/dynamic-ad-insertion/sdk/ios/privacy/api/reference/Classes/UMPConsentForm)\n\n `\n ` \n A single use consent form object. \n\n #### Declaration\n\n Swift \n\n class ConsentForm : NSObject\n\n Objective-C \n\n\n @interface UMPConsentForm : NSObject\n\n- `\n ``\n ``\n `\n\n ### [UMPConsentInformation](/ad-manager/dynamic-ad-insertion/sdk/ios/privacy/api/reference/Classes/UMPConsentInformation)\n\n `\n ` \n Consent information. All methods must be called on the main thread. \n\n #### Declaration\n\n Swift \n\n class ConsentInformation : NSObject\n\n Objective-C \n\n\n @interface UMPConsentInformation : NSObject\n\n- `\n ``\n ``\n `\n\n ### [UMPDebugSettings](/ad-manager/dynamic-ad-insertion/sdk/ios/privacy/api/reference/Classes/UMPDebugSettings)\n\n `\n ` \n Overrides settings for debugging or testing. \n\n #### Declaration\n\n Swift \n\n class DebugSettings : NSObject, NSCopying\n\n Objective-C \n\n\n @interface UMPDebugSettings : NSObject \u003cNSCopying\u003e\n\n- `\n ``\n ``\n `\n\n ### [UMPRequestParameters](/ad-manager/dynamic-ad-insertion/sdk/ios/privacy/api/reference/Classes/UMPRequestParameters)\n\n `\n ` \n Parameters sent on updates to user consent info. \n\n #### Declaration\n\n Swift \n\n class RequestParameters : NSObject, NSCopying\n\n Objective-C \n\n\n @interface UMPRequestParameters : NSObject \u003cNSCopying\u003e"]]