GoogleUserMessagingPlatform Framework Reference

  • This documentation details globally available classes for managing user consent and privacy in iOS applications.

  • The classes include UMPConsentForm for displaying consent forms, UMPConsentInformation for accessing and updating user consent status, and UMPDebugSettings for testing and debugging purposes.

  • UMPRequestParameters class is used for configuring parameters when updating user consent information.

  • Each class is presented with its declaration in both Swift and Objective-C for easy integration into iOS projects.

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>