GoogleNavigation Framework Reference
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
      
        
          
            GMSMapViewPaddingAdjustmentBehavior
              
                
                  enum GMSMapViewPaddingAdjustmentBehavior : NSUInteger {}
                 
               
            Constants indicating how safe area insets are added to padding.
          
          
            
              
                - 
                  
                  
                    
                    
                      
                      
                        Always include the safe area insets in the padding. 
 
                        Declaration
                          Objective-C kGMSMapViewPaddingAdjustmentBehaviorAlways
 
 
 
 
- 
                  
                  
                    
                    
                      
                      
                        When the padding value is smaller than the safe area inset for a particular edge, use the safe
area value for layout, else use padding. 
 
                        Declaration
                          Objective-C kGMSMapViewPaddingAdjustmentBehaviorAutomatic
 
 
 
 
- 
                  
                  
                    
                    
                      
                      
                        Never include the safe area insets in the padding. This was the behavior prior to version 2.5. 
 
                        Declaration
                          Objective-C kGMSMapViewPaddingAdjustmentBehaviorNever
 
 
 
 
           
        
      
     
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  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-27 UTC.
  
  
  
    
      [null,null,["Last updated 2025-08-27 UTC."],[],["The `GMSMapViewPaddingAdjustmentBehavior` enum defines how safe area insets are incorporated into map padding. `kGMSMapViewPaddingAdjustmentBehaviorAlways` ensures safe area insets are always part of the padding. `kGMSMapViewPaddingAdjustmentBehaviorAutomatic` uses safe area values if they exceed padding, otherwise uses padding. `kGMSMapViewPaddingAdjustmentBehaviorNever` excludes safe area insets, maintaining pre-version 2.5 behavior. These behaviors determine if the padding will be impacted by the safe area insets of the device.\n"]]