Other Classes
The following classes are available globally.
-
See moreDispatchTimer
is a general-purpose wrapper over theDispatchSourceTimer
mechanism in GCD.Declaration
Swift
public class DispatchTimer
-
Feedback event that can be created using
NavigationEventsManager.createFeedback()
. UseNavigationEventsManager.sendActiveNavigationFeedback(_:type:description:)
to send it to the server. Conforms to theCodable
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
See moreDirections
requests wrapper to request new routes or refresh an existing one. Depending onRouterSource
,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.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 fromNavigationSettings.tileStoreConfiguration
.Declaration
Swift
public class PredictiveCacheManager
-
A rounded button with an icon that is designed to float above
See moreNavigationMapView
.Declaration
Swift
@objc(MBFloatingButton) open class FloatingButton : Button
-
A banner view that contains the current step instruction along a route and responds to tap and swipe gestures.
Declaration
Swift
open class StepInstructionsView : BaseInstructionsBannerView
-
UITableViewCell
instance that provides the ability to show a current step instruction along a route.Declaration
Swift
open class StepTableViewCell : UITableViewCell
-
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.
See moreWayNameView
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 hideWayNameView
setWayNameView.isHidden
property totrue
.Declaration
Swift
@objc(MBWayNameView) open class WayNameView : UIView