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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThis documentation details globally available classes for managing user consent and privacy in iOS apps using the User Messaging Platform (UMP).\u003c/p\u003e\n"],["\u003cp\u003eThe classes include \u003ccode\u003eUMPConsentForm\u003c/code\u003e for displaying consent forms, \u003ccode\u003eUMPConsentInformation\u003c/code\u003e for managing consent data, \u003ccode\u003eUMPDebugSettings\u003c/code\u003e for testing and debugging, and \u003ccode\u003eUMPRequestParameters\u003c/code\u003e for configuring consent update requests.\u003c/p\u003e\n"],["\u003cp\u003eThese classes provide developers with tools to implement and customize the user consent experience within their applications, ensuring compliance with privacy regulations.\u003c/p\u003e\n"]]],["The content defines four classes for managing user consent: `UMPConsentForm`, a single-use object for consent forms; `UMPConsentInformation`, handling consent data on the main thread; `UMPDebugSettings`, which provides override settings for testing; and `UMPRequestParameters`, which manages parameters sent during user consent updates. These are all globally available, and they are defined using both Swift and Objective-C syntax. All the classes inherit from the NSObject class. Two classes also implement 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](/admob/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](/admob/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](/admob/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](/admob/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"]]