TopBannerViewControllerDelegate
public protocol TopBannerViewControllerDelegate : VisualInstructionDelegate
TopBannerViewControllerDelegate provides methods for reacting to the user interactions with
TopBannerViewController. Such interactions include:
InstructionsBannerViewswiping to the left, right, top and bottom.StepTableViewCellselection.- Display or dismissal of
StepsViewController, which shows list of remaining legs and steps.
-
topBanner(_:didSwipeInDirection:)Default implementationA method that is invoked when the user swipes
InstructionsBannerViewin a certain direction.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func topBanner(_ banner: TopBannerViewController, didSwipeInDirection direction: UISwipeGestureRecognizer.Direction)Parameters
bannerThe
TopBannerViewControllerinstance.directionDirection, in which swiping was performed: (either
.left,.right,.topor.bottom). -
topBanner(_:didSelect:stepIndex:cell:)Default implementationA method that is invoked when the user selects certain step in a
TopBannerViewControllerdrop-down menu.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func topBanner(_ banner: TopBannerViewController, didSelect legIndex: Int, stepIndex: Int, cell: StepTableViewCell)Parameters
bannerThe
TopBannerViewControllerinstance.legIndexThe zero-based index of the currently active leg along the active route.
stepIndexThe zero-based index of the currently active step along the active route.
cellThe
StepTableViewCellinstance, which contains visual information regarding maneuver. -
topBanner(_:willDisplayStepsController:)Default implementationTells the delegate the
TopBannerViewControlleris about to display aStepsViewControlleras a drop-down.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func topBanner(_ banner: TopBannerViewController, willDisplayStepsController: StepsViewController)Parameters
bannerThe
TopBannerViewControllerinstance.willDisplayStepsControllerThe
StepsViewControllerinstance, which is about to be shown as a drop-down. -
topBanner(_:didDisplayStepsController:)Default implementationTells the delegate the
TopBannerViewControllerthatStepsViewControllerwas displayed as a drop-down.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func topBanner(_ banner: TopBannerViewController, didDisplayStepsController: StepsViewController)Parameters
bannerThe
TopBannerViewControllerinstance.didDisplayStepsControllerThe
StepsViewControllerinstance, which was displayed as a drop-down. -
topBanner(_:willDismissStepsController:)Default implementationTells the delegate the
TopBannerViewControlleris about to dismiss and hide aStepsViewControllerdrop-down.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func topBanner(_ banner: TopBannerViewController, willDismissStepsController: StepsViewController)Parameters
bannerThe
TopBannerViewControllerinstance.willDismissStepsControllerThe
StepsViewControllerinstance, which is about to be dismissed. -
topBanner(_:didDismissStepsController:)Default implementationTells the delegate the
TopBannerViewControllerthatStepsViewControllerwas dismissed.Default Implementation
UnimplementedLoggingprints a warning to standard output the first time this method is called.Declaration
Swift
func topBanner(_ banner: TopBannerViewController, didDismissStepsController: StepsViewController)Parameters
bannerThe
TopBannerViewControllerinstance.didDismissStepsControllerThe
StepsViewControllerinstance, which was dismissed.
Install in Dash
TopBannerViewControllerDelegate Protocol Reference