NotificationUserInfoKey
public struct NotificationUserInfoKey : Hashable, Equatable, RawRepresentable
Keys in the user info dictionaries of various notifications posted by instances of RouteController
.
-
Declaration
Swift
public typealias RawValue = String
-
Declaration
Swift
public var rawValue: String
-
Declaration
Swift
public init(rawValue: String)
-
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChange
,Notification.Name.routeControllerDidPassVisualInstructionPoint
, orNotification.Name.routeControllerDidPassSpokenInstructionPoint
notification. The corresponding value is aRouteProgress
object representing the current route progress.Declaration
Swift
public static let routeProgressKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChange
,Notification.Name.routeControllerWillReroute
,Notification.Name.routeControllerDidReroute
,Notification.Name.routeControllerWillTakeAlternativeRoute
,Notification.Name.routeControllerDidTakeAlternativeRoute
, orNotification.Name.routeControllerDidFailToTakeAlternativeRoute
notification. The corresponding value is aCLLocation
object representing the current idealized user location.Declaration
Swift
public static let locationKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChange
notification. The corresponding value is aCLLocation
object representing the current raw user location.Declaration
Swift
public static let rawLocationKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChange
notification. The corresponding value is aCLHeading
object representing the current user heading.Declaration
Swift
public static let headingKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChange
notification. The corresponding value is aMapMatchingResult
object representing the map matching state.Declaration
Swift
public static let mapMatchingResultKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChange
notification. The corresponding value is aNSString
object representing the current road name.Declaration
Swift
public static let roadNameKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChange
notification. The corresponding value is aNSString
object representing the localized current road name.Declaration
Swift
public static let localizedRoadNameKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChange
notification. The corresponding value is aMapboxDirections.VisualInstruction.Component.ImageRepresentation
object representing the road shield the user is currently traveling on.Declaration
Swift
public static let routeShieldRepresentationKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChange
notification. The corresponding value is aMapboxDirections.VisualInstruction.Component.ImageRepresentation
object representing the localized road shield the user is currently traveling on.Declaration
Swift
public static let localizedRouteShieldRepresentationKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.didArriveAtWaypoint
notification. The corresponding value is aMapboxDirections.Waypoint
object representing the current destination waypoint.Declaration
Swift
public static let waypointKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidReroute
notification. The corresponding value is anNSNumber
instance containing a Boolean value indicating whetherRouteController
proactively rerouted the user onto a faster route.Declaration
Swift
public static let isProactiveKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidFailToReroute
notification. The corresponding value is anNSError
object indicating whyRouteController
was unable to calculate a new route.Declaration
Swift
public static let routingErrorKey: NotificationUserInfoKey
-
A key in the user info dictionary of an
Notification.Name.routeControllerDidPassVisualInstructionPoint
. The corresponding value is anVisualInstruction
object representing the current visual instruction.Declaration
Swift
public static let visualInstructionKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidPassSpokenInstructionPoint
notification. The corresponding value is anSpokenInstruction
object representing the current visual instruction.Declaration
Swift
public static let spokenInstructionKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerWillTakeAlternativeRoute
notification. The corresponding value is aRoute
object representing the route being mentioned.Declaration
Swift
public static let routeKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidUpdateAlternatives
notification. The corresponding value is anAlternativeRoute
array representing the actual alternatives list.Declaration
Swift
public static let updatedAlternativesKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidUpdateAlternatives
notification. The corresponding value is anAlternativeRoute
array representing the alternatives which are no longer valid.Declaration
Swift
public static let removedAlternativesKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidFailToUpdateAlternatives
notification. The corresponding value is aAlternativeRouteError
object representing the error ocurred during alternatives list update.Declaration
Swift
public static let alternativesErrorKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidSwitchToCoincidentOnlineRoute
notification. The corresponding value is aRoute
object representing the selected route.Declaration
Swift
public static let coincidentRouteKey: NotificationUserInfoKey