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
, orNotification.Name.routeControllerDidReroute
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 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.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