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, orNotification.Name.routeControllerDidReroutenotification. 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.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.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
Install in Dash
NotificationUserInfoKey Structure Reference