Other Classes

The following classes are available globally.

  • DispatchTimer is a general-purpose wrapper over the DispatchSourceTimer mechanism in GCD.

    See more

    Declaration

    Swift

    public class DispatchTimer
  • Feedback event that can be created using NavigationEventsManager.createFeedback(). Use NavigationEventsManager.sendActiveNavigationFeedback(_:type:description:) to send it to the server. Conforms to the Codable protocol, so the application can store the event persistently.

    Declaration

    Swift

    public class FeedbackEvent : Codable
  • Provides alternative access to routing API.

    Use this class instead Directions requests wrapper to request new routes or refresh an existing one. Depending on RouterSource, MapboxRoutingProvider will use online and/or onboard routing engines. This may be used when designing purely online or offline apps, or when you need to provide best possible service regardless of internet collection.

    See more

    Declaration

    Swift

    public class MapboxRoutingProvider : RoutingProvider
  • Proactively fetches tiles which may become necessary if the device loses its Internet connection at some point during passive or active turn-by-turn navigation.

    Typically, you initialize an instance of this class and retain it as long as caching is required.

    Note

    This object uses global tile store configuration from NavigationSettings.tileStoreConfiguration.
    See more

    Declaration

    Swift

    public class PredictiveCacheManager
  • A rounded button with an icon that is designed to float above NavigationMapView.

    See more

    Declaration

    Swift

    @objc(MBFloatingButton)
    open class FloatingButton : Button
  • A label that is used to show a road name and a shield icon.

    Declaration

    Swift

    @objc(MBWayNameLabel)
    open class WayNameLabel : StylableLabel
  • A host view for WayNameLabel that shows a road name and a shield icon.

    WayNameView is hidden or shown depending on the road name information availability. In case if such information is not present, WayNameView is automatically hidden. If you’d like to completely hide WayNameView set WayNameView.isHidden property to true.

    See more

    Declaration

    Swift

    @objc(MBWayNameView)
    open class WayNameView : UIView