TopBannerViewController
open class TopBannerViewController : UIViewController
extension TopBannerViewController: NavigationComponent
extension TopBannerViewController: InstructionsBannerViewDelegate
extension TopBannerViewController: StepsViewControllerDelegate
extension TopBannerViewController: CarPlayConnectionObserver
extension TopBannerViewController: NavigationStatusPresenter
extension TopBannerViewController: NavigationMapInteractionObserver
A view controller that displays the current maneuver instruction as a “banner” flush with the edges of the containing view. The user swipes to one side to preview a subsequent maneuver.
This class is the default top banner view controller used by NavigationOptions
and NavigationViewController
. InstructionsCardViewController
provides an alternative, user notification–like interface.
-
The delegate for the view controller.
Seealso
TopBannerViewControllerDelegateDeclaration
Swift
public weak var delegate: TopBannerViewControllerDelegate?
-
A banner view that contains the current step instructions and responds to tap and swipe gestures.
Declaration
Swift
public private(set) lazy var instructionsBannerView: InstructionsBannerView { get set }
-
A view that contains one or more images indicating which lanes of road the user should take to complete the maneuver.
Declaration
Swift
public var lanesView: LanesView
-
A view that indicates the instruction for next step.
Declaration
Swift
public var nextBannerView: NextBannerView
-
A translucent bar that indicates the navigation status.
Declaration
Swift
public var statusView: StatusView
-
A view that indicates the layout of a highway junction.
Declaration
Swift
public var junctionView: JunctionView
-
Declaration
Swift
public func navigationService(_ service: NavigationService, didUpdate progress: RouteProgress, with location: CLLocation, rawLocation: CLLocation)
-
Declaration
Swift
public func navigationService(_ service: NavigationService, didPassVisualInstructionPoint instruction: VisualInstructionBanner, routeProgress: RouteProgress)
-
Declaration
Swift
public func navigationService(_ service: NavigationService, willRerouteFrom location: CLLocation)
-
Declaration
Swift
public func navigationService(_ service: NavigationService, didRerouteAlong route: Route, at location: CLLocation?, proactive: Bool)
-
Declaration
Swift
public func navigationService(_ service: NavigationService, didSwitchToCoincidentOnlineRoute coincideRoute: Route)
-
Declaration
Swift
public func navigationService(_ service: NavigationService, didBeginSimulating progress: RouteProgress, becauseOf reason: SimulationIntent)
-
Declaration
Swift
public func navigationService(_ service: NavigationService, willEndSimulating progress: RouteProgress, becauseOf reason: SimulationIntent)
-
Declaration
Swift
public func didTapInstructionsBanner(_ sender: BaseInstructionsBannerView)
-
Declaration
Swift
public func didSwipeInstructionsBanner(_ sender: BaseInstructionsBannerView, swipeDirection direction: UISwipeGestureRecognizer.Direction)
-
Declaration
Swift
public func label(_ label: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString?
-
Declaration
Swift
public func stepsViewController(_ viewController: StepsViewController, didSelect legIndex: Int, stepIndex: Int, cell: StepTableViewCell)
-
Declaration
Swift
public func didDismissStepsViewController(_ viewController: StepsViewController)
-
Declaration
Swift
public func didConnectToCarPlay()
-
Declaration
Swift
public func didDisconnectFromCarPlay()
-
Declaration
Swift
public func show(_ status: StatusView.Status)
-
Declaration
Swift
public func hide(_ status: StatusView.Status)
-
Declaration
Swift
public func navigationViewController(didCenterOn location: CLLocation)