-
An
See moreAlertLevelindicates 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
RouteControllerAlertLevelDidChangenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerAlertLevelDidChangeNotificationDistanceToEndOfManeuverKey = MBRouteControllerAlertLevelDidChangeNotificationDistanceToEndOfManeuverKey -
Key used for accessing the
RouteProgressobject from aRouteControllerAlertLevelDidChangenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerAlertLevelDidChangeNotificationRouteProgressKey = MBRouteControllerAlertLevelDidChangeNotificationRouteProgressKey -
Emitted after the user has gone off-route but the
RouteControllerfailed to reroute.Declaration
Swift
public let RouteControllerDidFailToReroute = Notification.Name(MBRouteControllerDidFailToReroute) -
Emitted after the user has gone off-route and the
RouteControllerrerouted.Declaration
Swift
public let RouteControllerDidReroute = Notification.Name(MBRouteControllerDidReroute) -
Key used for accessing the error from a
RouteControllerDidFailToReroutenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerNotificationErrorKey = MBRouteControllerNotificationErrorKey -
Key used for accessing the user’s current
CLLocationfrom aRouteControllerWillReroutenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerNotificationLocationKey = MBRouteControllerNotificationLocationKey -
Key used for accessing the newly rerouted
Routefrom aRouteControllerDidReroutenotification’suserInfodictionary.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
CLLocationobject from aRouteControllerProgressDidChangenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerProgressDidChangeNotificationLocationKey = MBRouteControllerProgressDidChangeNotificationLocationKey -
Key used for accessing the
RouteProgressobject from aRouteControllerProgressDidChangenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerProgressDidChangeNotificationProgressKey = MBRouteControllerProgressDidChangeNotificationProgressKey -
Key used for accessing the number of seconds left on a step (Double) from a
RouteControllerProgressDidChangenotification’suserInfodictionary.Declaration
Swift
public let RouteControllerProgressDidChangeNotificationSecondsRemainingOnStepKey = MBRouteControllerProgressDidChangeNotificationSecondsRemainingOnStepKey -
Emitted when the user has gone off-route and the
RouteControlleris about to reroute.Declaration
Swift
public let RouteControllerWillReroute = Notification.Name(MBRouteControllerWillReroute)
Install in Dash
Notifications Reference