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."],[[["\u003cp\u003e\u003ccode\u003eGMSMapViewPaddingAdjustmentBehavior\u003c/code\u003e defines how safe area insets are incorporated into the padding of a \u003ccode\u003eGMSMapView\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ekGMSMapViewPaddingAdjustmentBehaviorAlways\u003c/code\u003e ensures safe area insets are always included in the padding.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ekGMSMapViewPaddingAdjustmentBehaviorAutomatic\u003c/code\u003e uses safe area insets for layout when padding is smaller than the safe area, otherwise uses the specified padding.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ekGMSMapViewPaddingAdjustmentBehaviorNever\u003c/code\u003e ignores safe area insets, replicating behavior prior to version 2.5.\u003c/p\u003e\n"]]],["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"],null,["# GoogleNavigation Framework Reference\n\nGMSMapViewPaddingAdjustmentBehavior\n===================================\n\n enum GMSMapViewPaddingAdjustmentBehavior : NSUInteger {}\n\nConstants indicating how safe area insets are added to padding.\n- `\n ``\n ``\n `\n\n ### [kGMSMapViewPaddingAdjustmentBehaviorAlways](#/c:@E@GMSMapViewPaddingAdjustmentBehavior@kGMSMapViewPaddingAdjustmentBehaviorAlways)\n\n `\n ` \n Always include the safe area insets in the padding. \n\n #### Declaration\n\n Swift \n\n case always = 0\n\n Objective-C \n\n kGMSMapViewPaddingAdjustmentBehaviorAlways\n\n- `\n ``\n ``\n `\n\n ### [kGMSMapViewPaddingAdjustmentBehaviorAutomatic](#/c:@E@GMSMapViewPaddingAdjustmentBehavior@kGMSMapViewPaddingAdjustmentBehaviorAutomatic)\n\n `\n ` \n When the padding value is smaller than the safe area inset for a particular edge, use the safe\n area value for layout, else use padding. \n\n #### Declaration\n\n Swift \n\n case automatic = 1\n\n Objective-C \n\n kGMSMapViewPaddingAdjustmentBehaviorAutomatic\n\n- `\n ``\n ``\n `\n\n ### [kGMSMapViewPaddingAdjustmentBehaviorNever](#/c:@E@GMSMapViewPaddingAdjustmentBehavior@kGMSMapViewPaddingAdjustmentBehaviorNever)\n\n `\n ` \n Never include the safe area insets in the padding. This was the behavior prior to version 2.5. \n\n #### Declaration\n\n Swift \n\n case never = 2\n\n Objective-C \n\n kGMSMapViewPaddingAdjustmentBehaviorNever"]]