GoogleUserMessagingPlatform Framework Reference
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
      
        
          
            UMPConsentStatus
              
                
                  enum UMPConsentStatus : NSInteger {}
                 
               
            Consent status values.
          
          
            
              
                - 
                  
                  
                    
                    
                      
                      
                        < Unknown consent status. 
 
                        Declaration
                          Objective-C UMPConsentStatusUnknown = 0
 
 
 
 
- 
                  
                  
                    
                    
                      
                      
                        < User consent required but not yet obtained. 
 
                        Declaration
                          Objective-C UMPConsentStatusRequired = 1
 
 
 
 
- 
                  
                  
                    
                    
                      
                      
                      
                        Declaration
                          Swift case notRequired = 2
 
 
                          Objective-C UMPConsentStatusNotRequired = 2
 
 
 
 
- 
                  
                  
                    
                    
                      
                      
                      
                        Declaration
                          Objective-C UMPConsentStatusObtained =
      3
 
 
 
 
           
        
      
     
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  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."],[],["`UMPConsentStatus` is an enumeration with four possible values indicating user consent status: `unknown` (0), where the status is undetermined; `required` (1), meaning consent is needed but not yet given; `notRequired` (2), indicating consent is not necessary; and `obtained` (3), the status when the user has given the consent. These values can be accessed via both Swift and Objective-C using these integer values.\n"]]