Mapbox Navigation SDK for iOS Docs Navigation SDK for iOS Reference (2.9.0)

View on GitHub

Install in Dash

Mapbox Navigation SDK for iOS Reference Preview Reference
  • Guides
    • Using Map Matching
    • Reduce Memory Usage
    • Styling the UI
  • Turn-by-turn UI
    • NavigationViewController
    • NavigationViewControllerDelegate
    • RouteVoiceController
    • SpeechSynthesizing
    • SpeechSynthesizingDelegate
    • MapboxSpeechSynthesizer
    • SystemSpeechSynthesizer
    • MultiplexedSpeechSynthesizer
    • SpeechError
    • SpeechFailureAction
    • NavigationOptions
    • NavigationView
  • Core Navigation Logic
    • NavigationService
    • NavigationServiceDelegate
    • MapboxNavigationService
    • – NotificationUserInfoKey
    • Router
    • RouterDataSource
    • RouteController
    • – NotificationUserInfoKey
    • RouterDelegate
    • RouteProgress
    • RouteLegProgress
    • RouteStep
    • RouteStepProgress
    • CongestionLevel
    • VisualInstruction
    • VisualInstructionDelegate
    • NavigationEventsManager
    • ActiveNavigationEventsManagerDataSource
    • PassiveNavigationEventsManagerDataSource
    • NavigationLocationManager
    • ReplayLocationManager
    • SimulatedLocationManager
    • NavigationRouteOptions
    • DirectionsOptions
    • NavigationMatchOptions
    • SimulationMode
    • SimulationIntent
    • SimulationState
    • PassiveLocationManager
    • – NotificationUserInfoKey
    • PassiveLocationManagerDelegate
  • Maps
    • NavigationMapView
    • NavigationMapViewDelegate
    • MapView
    • PassiveLocationProvider
    • NavigationLocationProvider
    • WaypointStyle
    • UserLocationStyle
  • Styling
    • Style
    • StyleManager
    • StyleManagerNotificationUserInfoKey
    • StyleManagerDelegate
    • DayStyle
    • NightStyle
  • Formatters
    • DistanceFormatter
  • UI Components
    • SpeedLimitView
    • UserPuckCourseView
    • UserHaloCourseView
    • UserCourseView
    • CourseUpdatable
    • NavigationComponent
    • FloatingButton
    • WayNameLabel
    • WayNameView
  • Guidance Instruction UI
    • TopBannerViewController
    • TopBannerViewControllerDelegate
    • InstructionsCardViewController
    • InstructionsCardContainerView
    • InstructionsCardContainerViewDelegate
    • InstructionsBannerView
    • InstructionsBannerViewDelegate
    • BaseInstructionsBannerView
    • ManeuverView
    • JunctionView
    • GenericRouteShield
    • StepsViewControllerDelegate
    • BottomBannerViewController
    • BottomBannerViewControllerDelegate
  • CarPlay
    • CarPlayManager
    • CarPlayManagerDelegate
    • CarPlayNavigationViewController
    • CarPlayNavigationViewControllerDelegate
    • CarPlayActivity
    • CarPlayCompassView
    • CarPlayMapViewController
    • CarPlayMapViewControllerDelegate
    • CarPlaySearchController
    • CarPlaySearchControllerDelegate
    • CarPlayConnectionObserver
    • RecentItem
    • NavigationGeocodedPlacemark
    • CarPlayUserInfo
  • Configuration
    • RouteControllerDeadReckoningTimeInterval
    • RouteControllerMediumAlertInterval
    • RouteControllerHighAlertInterval
    • RouteControllerManeuverZoneRadius
    • RouteSnappingMaxManipulatedCourseAngle
    • RouteControllerMaximumAllowedDegreeOffsetForTurnCompletion
    • RouteControllerMaximumDistanceBeforeRecalculating
    • RouteControllerUserLocationSnappingDistance
    • MapOrnamentPosition
    • CongestionAttribute
    • CurrentLegAttribute
    • RouteLineWidthByZoomLevel
    • NavigationMapViewMinimumDistanceForOverheadZooming
    • NavigationViewMinimumVolumeForWarning
    • GradientCongestionFadingDistance
    • RouteControllerIncorrectCourseMultiplier
    • RouteControllerLinkedInstructionBufferMultiplier
    • RouteControllerMaximumSpeedForUsingCurrentStep
    • RouteControllerMinNumberOfInCorrectCourses
    • RouteControllerMinimumBacktrackingDistanceForRerouting
    • RouteControllerMinimumDistanceForContinueInstruction
    • RouteControllerMinimumDurationRemainingForProactiveRerouting
    • RouteControllerMinimumNumberLocationUpdatesBackwards
    • RouteControllerNumberOfSecondsForRerouteFeedback
    • RouteControllerProactiveReroutingInterval
    • RouteSnappingMinimumHorizontalAccuracy
    • RouteSnappingMinimumSpeed
    • NavigationSettings
  • User Feedback
    • FeedbackViewController
    • FeedbackViewControllerDelegate
    • FeedbackItem
    • ActiveNavigationFeedbackType
    • PassiveNavigationFeedbackType
    • PassiveNavigationIncorrectVisualSubtype
    • ConfusingAudioSubtype
    • RouteQualitySubtype
    • IllegalRouteSubtype
    • RoadClosureSubtype
    • FeedbackSource
    • EndOfRouteFeedback
    • FeedbackEvent
    • FeedbackScreenshotOption
    • FeedbackType
    • PassiveNavigationRoadIssueSubtype
    • PassiveNavigationWrongTrafficSubtype
    • LooksIncorrectSubtype
  • Camera
    • NavigationCamera
    • NavigationCameraType
    • NavigationCameraState
    • CameraStateTransition
    • NavigationCameraStateTransition
    • ViewportDataSource
    • NavigationViewportDataSource
    • ViewportDataSourceType
    • ViewportDataSourceDelegate
    • FollowingCameraOptions
    • IntersectionDensity
    • BearingSmoothing
    • GeometryFramingAfterManeuver
    • PitchNearManeuver
    • OverviewCameraOptions
    • NavigationViewportDataSourceOptions
    • CameraOptions
  • Preview
    • PreviewOptions
    • PreviewViewController
    • PreviewViewControllerDelegate
    • Banner
    • BannerConfiguration
    • BannerDismissalViewController
    • BannerDismissalViewControllerDelegate
    • DestinationPreviewViewController
    • DestinationPreviewViewControllerDelegate
    • DestinationOptions
    • DestinationDataSource
    • RoutePreviewViewController
    • RoutePreviewViewControllerDelegate
    • RoutePreviewOptions
    • RoutePreviewDataSource
  • Electronic Horizon
    • ElectronicHorizonOptions
    • RoadGraph
    • – NotificationUserInfoKey
    • – Edge
    • – Path
    • – Position
    • – SubgraphEdge
    • OpenLRIdentifier
    • OpenLROrientation
    • RoadName
    • RoadObject
    • – EdgeLocation
    • – Kind
    • – Location
    • – Position
    • DistancedRoadObject
    • RoadObjectMatcher
    • RoadObjectStore
    • RoadObjectMatcherDelegate
    • RoadObjectStoreDelegate
    • RoadObjectMatcherError
    • OpenLRSideOfRoad
  • Reading History
    • HistoryReader
    • – ReadOptions
    • – Iterator
    • HistoryEvent
    • UnknownHistoryEvent
    • RouteAssignmentHistoryEvent
    • LocationUpdateHistoryEvent
    • History
    • HistoryRecording
  • Other Classes
    • DispatchTimer
    • – State
    • MapboxRoutingProvider
    • – Source
    • – Request
    • PredictiveCacheManager
    • StepInstructionsView
    • StepTableViewCell
  • Other Global Variables
    • CongestionRangeHeavy
    • CongestionRangeLow
    • CongestionRangeModerate
    • CongestionRangeSevere
    • RestrictedRoadClassAttribute
  • Other Enumerations
    • AlternativeRouteError
    • ReroutingError
    • RoutesPresentationStyle
  • Other Extensions
    • Array
    • Bundle
    • CGPoint
    • CGSize
    • CLLocation
    • CPInterfaceController
    • CongestionRange
    • Dictionary
    • Directions
    • Locale
    • MapboxNavigationNative.RoadObjectMatcherError
    • MapboxStreetsRoadClass
    • Measurement
    • NSAttributedString
    • – Key
    • Notification
    • – Name
    • ResourceOptionsManager
    • RouteLeg
    • String
    • StyleURI
    • TileStore
    • TilesetDescriptorFactory
    • UIApplication
    • – State
    • UIDevice
    • UIEdgeInsets
    • UIFont
    • UIWindow
    • URLSessionDataTask
  • Other Protocols
    • BimodalCache
    • BimodalDataCache
    • BimodalImageCache
    • NavigationMapInteractionObserver
    • NavigationProviderRequest
    • NavigationStatusPresenter
    • RouteVoiceControllerDelegate
    • RoutingProvider
    • UnimplementedLogging
  • Other Structures
    • AlternativeRoute
    • – RouteInfo
    • AlternativeRouteDetectionStrategy
    • – RefreshOnEmpty
    • BorderCrossing
    • IncidentsOptions
    • IndexedRouteResponse
    • MapMatchingResult
    • PredictiveCacheLocationOptions
    • PredictiveCacheMapsOptions
    • PredictiveCacheNavigationOptions
    • PredictiveCacheOptions
    • RouteAlert
    • StatusUpdatingSettings
    • TileStoreConfiguration
    • – Location
    • Tunnel
  • Other Type Aliases
    • AdvanceLegCompletionHandler
    • CongestionRange
    • ContainerViewController
    • RoutingProviderSource

Preview

  • PreviewOptions

    Customization options for the navigation preview user experience in a PreviewViewController.

    See more

    Declaration

    Swift

    public struct PreviewOptions
    View Source on GitHub
  • PreviewViewController

    PreviewViewController is a user interface for the preview mode experience. It allows to present banners that contain information that is important for the user before actually starting turn-by-turn navigation session (e.g. final destination presentation, main and alternative routes preview etc). By default Mapbox Navigation SDK provides such 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

    Internally PreviewViewController relies on two components:

    • NavigationMapView - wraps MapView and provides convenience functions for adding and removing route lines, route duration annotations, shows user location indicator etc
    • NavigationView - wraps NavigationMapView and provides the ability to show drop-in related UI components like SpeedLimitView, WayNameView, top and bottom BannerContainerViews etc

    PreviewViewController works as an initial step before switching to the active navigation. Use NavigationViewController for turn-by-turn navigation experience.

    See more

    Declaration

    Swift

    public class PreviewViewController : UIViewController
    extension PreviewViewController: StyleManagerDelegate
    View Source on GitHub
  • PreviewViewControllerDelegate

    PreviewViewControllerDelegate allows to observe Banner presentation and dismissal events.

    See more

    Declaration

    Swift

    public protocol PreviewViewControllerDelegate : AnyObject, UnimplementedLogging
    View Source on GitHub
  • Banner

    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
    See more

    Declaration

    Swift

    public protocol Banner : UIViewController
    View Source on GitHub
  • BannerConfiguration

    Configuration of the banner that allows to change its default behavior.

    See more

    Declaration

    Swift

    public struct BannerConfiguration
    View Source on GitHub
  • BannerDismissalViewController

    Banner that is shown at the top of the screen and allows to dismiss already presented banners that were added to the PreviewViewController.

    See more

    Declaration

    Swift

    public class BannerDismissalViewController : UIViewController, Banner
    View Source on GitHub
  • BannerDismissalViewControllerDelegate

    The interface for an object that serves as the banner dismissal delegate.

    See more

    Declaration

    Swift

    public protocol BannerDismissalViewControllerDelegate : AnyObject
    View Source on GitHub
  • DestinationPreviewViewController

    Banner that is shown at the bottom of the screen and allows to show final destination information in PreviewViewController.

    See more

    Declaration

    Swift

    public class DestinationPreviewViewController : UIViewController, Banner, DestinationDataSource
    View Source on GitHub
  • DestinationPreviewViewControllerDelegate

    The interface for an object that serves as the destination preview delegate.

    See more

    Declaration

    Swift

    public protocol DestinationPreviewViewControllerDelegate : AnyObject
    View Source on GitHub
  • DestinationOptions

    Customization options for the destination(s) preview using DestinationPreviewViewController banner.

    See more

    Declaration

    Swift

    public struct DestinationOptions
    View Source on GitHub
  • DestinationDataSource

    A protocol, that allows to provide destination information.

    Banner instances should conform to this protocol, to provide the options that are required for the destination presentation in the PreviewViewController.

    By default Mapbox Navigation SDK provides DestinationPreviewViewController that conforms to this protocol and allows to present banner that shows final destination related information.

    See more

    Declaration

    Swift

    public protocol DestinationDataSource : AnyObject
    View Source on GitHub
  • RoutePreviewViewController

    Banner that is shown at the bottom of the screen and allows to show route-related information in PreviewViewController.

    See more

    Declaration

    Swift

    public class RoutePreviewViewController : UIViewController, Banner, RoutePreviewDataSource
    View Source on GitHub
  • RoutePreviewViewControllerDelegate

    The interface for an object that serves as the routes preview delegate.

    See more

    Declaration

    Swift

    public protocol RoutePreviewViewControllerDelegate : AnyObject
    View Source on GitHub
  • RoutePreviewOptions

    Customization options for the routes(s) preview using RoutePreviewViewController banner.

    See more

    Declaration

    Swift

    public struct RoutePreviewOptions
    View Source on GitHub
  • RoutePreviewDataSource

    A protocol, that allows to provide routes related information.

    Banner instances should conform to this protocol, to provide the options that are required for the route(s) presentation in the PreviewViewController.

    By default Mapbox Navigation SDK provides RoutePreviewViewController that conforms to this protocol and allows to present banner that shows route related information (expected travel time, arrival time and duration).

    See more

    Declaration

    Swift

    public protocol RoutePreviewDataSource : AnyObject
    View Source on GitHub

© 2014–2022 Mapbox. See license for more details.

Generated by jazzy ♪♫ v0.14.2, a Realm project.