-
An
See moreAlertLevel
indicates the user’s general progress toward a step’s maneuver point. A change to the current alert level is often an opportunity to present the user with a visual or voice notification about the upcoming maneuver.Declaration
Swift
public enum AlertLevel: Int
-
Emitted when the alert level changes. This indicates the user should be notified about the upcoming maneuver.
Declaration
Swift
public let RouteControllerAlertLevelDidChange = Notification.Name(MBRouteControllerAlertLevelDidChange)
-
Key used for accessing the user’s snapped distance to the end of the maneuver (CLLocationDistance) from a
RouteControllerAlertLevelDidChange
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerAlertLevelDidChangeNotificationDistanceToEndOfManeuverKey = MBRouteControllerAlertLevelDidChangeNotificationDistanceToEndOfManeuverKey
-
Key used for accessing the
RouteProgress
object from aRouteControllerAlertLevelDidChange
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerAlertLevelDidChangeNotificationRouteProgressKey = MBRouteControllerAlertLevelDidChangeNotificationRouteProgressKey
-
Emitted after the user has gone off-route but the
RouteController
failed to reroute.Declaration
Swift
public let RouteControllerDidFailToReroute = Notification.Name(MBRouteControllerDidFailToReroute)
-
Emitted after the user has gone off-route and the
RouteController
rerouted.Declaration
Swift
public let RouteControllerDidReroute = Notification.Name(MBRouteControllerDidReroute)
-
Key used for accessing the error from a
RouteControllerDidFailToReroute
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerNotificationErrorKey = MBRouteControllerNotificationErrorKey
-
Key used for accessing the user’s current
CLLocation
from aRouteControllerWillReroute
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerNotificationLocationKey = MBRouteControllerNotificationLocationKey
-
Key used for accessing the newly rerouted
Route
from aRouteControllerDidReroute
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerNotificationRouteKey = MBRouteControllerNotificationRouteKey
-
Emitted when the user moves along the route.
Declaration
Swift
public let RouteControllerProgressDidChange = Notification.Name(MBRouteControllerNotificationProgressDidChange)
-
Key used for accessing the
CLLocation
object from aRouteControllerProgressDidChange
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerProgressDidChangeNotificationLocationKey = MBRouteControllerProgressDidChangeNotificationLocationKey
-
Key used for accessing the
RouteProgress
object from aRouteControllerProgressDidChange
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerProgressDidChangeNotificationProgressKey = MBRouteControllerProgressDidChangeNotificationProgressKey
-
Key used for accessing the number of seconds left on a step (Double) from a
RouteControllerProgressDidChange
notification’suserInfo
dictionary.Declaration
Swift
public let RouteControllerProgressDidChangeNotificationSecondsRemainingOnStepKey = MBRouteControllerProgressDidChangeNotificationSecondsRemainingOnStepKey
-
Emitted when the user has gone off-route and the
RouteController
is about to reroute.Declaration
Swift
public let RouteControllerWillReroute = Notification.Name(MBRouteControllerWillReroute)