GoogleNavigation Framework Reference

GMSNavigationUIState

@protocol GMSNavigationUIState

Protocol for the common portions of the UI state across navigation-ready and active guidance modes.

  • Whether the turn card and ETA card are sizing themselves for wide-class devices or not.

    Declaration

    Swift

    var wideMode: Bool { get }

    Objective-C

    @property (nonatomic, readonly) BOOL wideMode;
  • Displays the Google logo, and may also display the recenter button.

    This element is required; all layout delegates must add it to the view hierarchy and position it so that it is visible. It is recommended to place it in the bottom left corner.

    All implementations of this protocol return the same view object for this property.

    Declaration

    Swift

    var googleLogo: UIView { get }

    Objective-C

    @property (nonatomic, readonly) UIView *_Nonnull googleLogo;
  • Element used to communicate the viewport to NavSDK.

    This element is required; all layout delegates must add it to the view hierarchy and position it to define the portion of the map container which is not obscured behind opaque UI elements. It is OK if smaller elements like buttons overlap with the viewport.

    All implementations of this protocol return the same view object for this property.

    Declaration

    Swift

    var viewport: UIView { get }

    Objective-C

    @property (nonatomic, readonly) UIView *_Nonnull viewport;