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.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.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