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.routeControllerDidPassSpokenInstructionPointnotification. The corresponding value is aRouteProgressobject 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.routeControllerDidFailToTakeAlternativeRoutenotification. The corresponding value is aCLLocationobject representing the current idealized user location.Declaration
Swift
public static let locationKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChangenotification. The corresponding value is aCLLocationobject representing the current raw user location.Declaration
Swift
public static let rawLocationKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChangenotification. The corresponding value is aCLHeadingobject representing the current user heading.Declaration
Swift
public static let headingKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.routeControllerProgressDidChangenotification. The corresponding value is aMapMatchingResultobject representing the map matching state.Declaration
Swift
public static let mapMatchingResultKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChangenotification. The corresponding value is aNSStringobject representing the current road name.Declaration
Swift
public static let roadNameKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChangenotification. The corresponding value is aNSStringobject representing the localized current road name.Declaration
Swift
public static let localizedRoadNameKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.currentRoadNameDidChangenotification. The corresponding value is aMapboxDirections.VisualInstruction.Component.ImageRepresentationobject 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.currentRoadNameDidChangenotification. The corresponding value is aMapboxDirections.VisualInstruction.Component.ImageRepresentationobject 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.didArriveAtWaypointnotification. The corresponding value is aMapboxDirections.Waypointobject representing the current destination waypoint.Declaration
Swift
public static let waypointKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerDidReroutenotification. The corresponding value is anNSNumberinstance containing a Boolean value indicating whetherRouteControllerproactively 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.routeControllerDidFailToReroutenotification. The corresponding value is anNSErrorobject indicating whyRouteControllerwas 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 anVisualInstructionobject representing the current visual instruction.Declaration
Swift
public static let visualInstructionKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.routeControllerDidPassSpokenInstructionPointnotification. The corresponding value is anSpokenInstructionobject representing the current visual instruction.Declaration
Swift
public static let spokenInstructionKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.routeControllerWillTakeAlternativeRoutenotification. The corresponding value is aRouteobject representing the route being mentioned.Declaration
Swift
public static let routeKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.routeControllerDidUpdateAlternativesnotification. The corresponding value is anAlternativeRoutearray representing the actual alternatives list.Declaration
Swift
public static let updatedAlternativesKey: NotificationUserInfoKey -
A key in the user info dictionary of a
Notification.Name.routeControllerDidUpdateAlternativesnotification. The corresponding value is anAlternativeRoutearray 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.routeControllerDidFailToUpdateAlternativesnotification. The corresponding value is aAlternativeRouteErrorobject 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.routeControllerDidSwitchToCoincidentOnlineRoutenotification. The corresponding value is aRouteobject representing the selected route.Declaration
Swift
public static let coincidentRouteKey: NotificationUserInfoKey
Install in Dash
NotificationUserInfoKey Structure Reference