InstructionsCardViewController
open class InstructionsCardViewController : UIViewController
extension InstructionsCardViewController: UICollectionViewDelegate
extension InstructionsCardViewController: UICollectionViewDataSource
extension InstructionsCardViewController: UICollectionViewDelegateFlowLayout
extension InstructionsCardViewController: NavigationComponent
extension InstructionsCardViewController: InstructionsCardContainerViewDelegate
extension InstructionsCardViewController: NavigationMapInteractionObserver
A view controller that displays the current maneuver instruction as a “card” resembling a user notification. A subsequent maneuver is always partially visible on one side of the view; swiping to one side reveals the full maneuver.
This class is an alternative to the more traditional banner interface provided by the
TopBannerViewController class. To use InstructionsCardViewController, create an instance of it
and pass it into the NavigationOptions(styles:navigationService:voiceController:topBanner:bottomBanner:)
method.
-
The InstructionsCardCollection delegate.
Declaration
Swift
public weak var cardCollectionDelegate: InstructionsCardCollectionDelegate?
-
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, didRerouteAlong route: Route, at location: CLLocation?, proactive: Bool) -
Declaration
Swift
public func navigationService(_ service: NavigationService, didSwitchToCoincidentOnlineRoute coincideRoute: Route)
-
Declaration
Swift
public func primaryLabel(_ primaryLabel: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString? -
Declaration
Swift
public func secondaryLabel(_ secondaryLabel: InstructionLabel, willPresent instruction: VisualInstruction, as presented: NSAttributedString) -> NSAttributedString?
-
Declaration
Swift
public func navigationViewController(didCenterOn location: CLLocation)
Install in Dash
InstructionsCardViewController Class Reference