Banner

public protocol Banner : UIViewController

A banner protocol provides the ability to show content inside NavigationView. Components that conform to Banner protocol must be instances of the UIViewController. Banners are injected into BannerContainerView and can have various properties: can be shown at the top or at the bottom of the screen, can be expanded and collapsed and can have custom height.

By default Mapbox Navigation SDK provides several default banners:

  • DestinationPreviewViewController - banner that is shown at the bottom of the screen and allows to show information about the final destination, preview available routes and start active navigation session
  • RoutePreviewViewController - banner that is shown at the bottom of the screen and allows to preview information about the current Route (expected travel time, distance and expected time of arrival)
  • BannerDismissalViewController - banner that is shown at the top of the screen and allows to dismiss already presented banner