NotificationUserInfoKey
public struct NotificationUserInfoKey : Hashable, Equatable, RawRepresentable
Keys in the user info dictionaries of various notifications posted by instances of RouteController
or PassiveLocationManager
about RoadGraph
s.
-
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.electronicHorizonDidUpdatePosition
notification. The corresponding value is aRoadGraph.Position
indicating the current position in the road graph.Declaration
Swift
public static let positionKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.electronicHorizonDidUpdatePosition
notification. The corresponding value is anRoadGraph.Edge
at the root of a tree of edges in the routing graph. This graph represents a probable path (or paths) of a vehicle within the routing graph for a certain distance in front of the vehicle, thus extending the user’s perspective beyond the “visible” horizon as the vehicle’s position and trajectory change.Declaration
Swift
public static let treeKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.electronicHorizonDidUpdatePosition
notification. The corresponding value is a Boolean value oftrue
if the position update indicates a new most probable path (MPP) orfalse
if it updates an existing MPP that the user has continued to follow.An electronic horizon can represent a new MPP in three scenarios:
- An electronic horizon is detected for the very first time.
- A user location tracking error leads to an MPP completely distinct from the previous MPP.
- The user has departed from the previous MPP, for example by driving to a side path of the previous MPP.
Declaration
Swift
public static let updatesMostProbablePathKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.electronicHorizonDidUpdatePosition
notification. The corresponding value is an array of upcoming road object distances from the user’s current location asDistancedRoadObject
values.Declaration
Swift
public static let distancesByRoadObjectKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.electronicHorizonDidEnterRoadObject
orNotification.Name.electronicHorizonDidExitRoadObject
notification. The corresponding value is aRoadObject.Identifier
identifying the road object that the user entered or exited.Declaration
Swift
public static let roadObjectIdentifierKey: NotificationUserInfoKey
-
A key in the user info dictionary of a
Notification.Name.electronicHorizonDidEnterRoadObject
orNotification.Name.electronicHorizonDidExitRoadObject
notification. The corresponding value is anNSNumber
containing a Boolean value set totrue
if the user entered at the beginning or exited at the end of the road object, orfalse
if they entered or exited somewhere along the road object.Declaration
Swift
public static let didTransitionAtEndpointKey: NotificationUserInfoKey