GoogleNavigation Framework Reference
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 2024-11-15 UTC.
[null,null,["Last updated 2024-11-15 UTC."],[[["`GMSMapViewPaddingAdjustmentBehavior` defines how safe area insets are incorporated into the padding of a `GMSMapView`."],["`kGMSMapViewPaddingAdjustmentBehaviorAlways` ensures safe area insets are always included in the padding."],["`kGMSMapViewPaddingAdjustmentBehaviorAutomatic` uses safe area insets for layout when padding is smaller than the safe area, otherwise uses the specified padding."],["`kGMSMapViewPaddingAdjustmentBehaviorNever` ignores safe area insets, replicating behavior prior to version 2.5."]]],["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"]]