NavigationEvent
public enum NavigationEvent
Represents various events that can occur during navigation.
The NavigationEvent
enum defines different types of events that can be published by the TomTomNavigation.eventPublisher
.
These events cover a wide range of scenarios, such as :
- changes in navigation state,
- map matching,
- progress updates,
- route changes,
guidance updates, and more. Each case in the enum corresponds to a specific event type and includes relevant information about that event.
Important
This is a Public Preview API. It may be changed or removed at any time.
-
Represents the state of navigation.
Declaration
Swift
case navigationStateChangeEvent(NavigationStateChangeEvent)
-
Represents the map matching.
Declaration
Swift
case mapMatchingEvent(MapMatchingEvent)
-
Represents the progress update.
Declaration
Swift
case progressUpdateEvent(ProgressUpdateEvent)
-
Represents the route tracking state update.
Declaration
Swift
case routeTrackingStateUpdateEvent(RouteTrackingStateUpdateEvent)
-
Represents the route.
Declaration
Swift
case routeEvent(RouteEvent)
Parameters
RouteEvent
The event indicating the route.
-
Represents the route added.
Declaration
Swift
case routeAddEvent(RouteAddEvent)
Parameters
RouteAddEvent
The event indicating the route added.
-
Represents the route removed.
Declaration
Swift
case routeRemoveEvent(RouteRemoveEvent)
Parameters
RouteRemoveEvent
The event indicating the route removed.
-
Represents the active route updated.
Declaration
Swift
case routeUpdateEvent(RouteUpdateEvent)
Parameters
RouteUpdateEvent
The event indicating the route updated.
-
Represents the active route changed.
Declaration
Swift
case activeRouteChangeEvent(ActiveRouteChangeEvent)
Parameters
ActiveRouteChangeEvent
The event indicating the active route changed.
-
Represents the event of guidance update.
Declaration
Swift
case guidanceUpdateEvent(GuidanceUpdateEvent)
Parameters
GuidanceUpdateEvent
Describes a guidance event indicating the reason of the event.
-
Represents the event of lane guidance update.
Declaration
Swift
case laneGuidanceUpdateEvent(LaneGuidanceUpdateEvent)
Parameters
LaneGuidanceUpdateEvent
Describes a lane guidance event indicating the reason of the event.
-
Represents the location context.
Declaration
Swift
case locationContextEvent(LocationContextEvent)
Parameters
LocationContextEvent
The event indicating the location context.
-
Represents the horizon event.
Declaration
Swift
case horizonEvent(HorizonEvent)
Parameters
HorizonEvent
The event indicating the horizon.
-
Represents the arrival at a destination.
Declaration
Swift
case destinationArrivalEvent(DestinationArrivalEvent)
Parameters
DestinationArrivalEvent
The event indicating arrival at the destination.
-
A
NavigationEvent
representing the arrival at a waypoint.Declaration
Swift
case waypointArrivalEvent(WaypointArrivalEvent)
Parameters
WaypointArrivalEvent
The event indicating the arrival at a waypoint.
-
Represents the language change.
Declaration
Swift
case languageChangeEvent(LanguageChangeEvent)
Parameters
LanguageChangeEvent
The event indicating the language change.
-
Represents the state of navigation.
See moreDeclaration
Swift
public enum NavigationStateChangeEvent
-
Represents the map matching event.
See moreDeclaration
Swift
public enum MapMatchingEvent
-
Represents the progress update event.
See moreDeclaration
Swift
public enum ProgressUpdateEvent
-
Represents the route events.
Declaration
Swift
public enum RouteEvent
-
Represents the route added event.
See moreDeclaration
Swift
public enum RouteAddEvent
-
Represents the route removed event.
See moreDeclaration
Swift
public enum RouteRemoveEvent
-
Represents the active route changed event.
See moreDeclaration
Swift
public enum ActiveRouteChangeEvent
-
Represents the route update event.
See moreDeclaration
Swift
public enum RouteUpdateEvent
-
Represents guidance update events.
The enumeration is a parameter of
See moreguidanceUpdateEvent(_:)
which is called when guidance update occurs.Declaration
Swift
public enum GuidanceUpdateEvent
-
Represents lane guidance update events.
The enumeration is a parameter of
See morelaneGuidanceUpdateEvent(_:)
which is called when lane guidance update occurs.Declaration
Swift
public enum LaneGuidanceUpdateEvent
-
Represents the location context event.
See moreDeclaration
Swift
public enum LocationContextEvent
-
Represents the route tracking state update event.
See moreDeclaration
Swift
public enum RouteTrackingStateUpdateEvent
-
Represents the horizon events.
See moreDeclaration
Swift
public enum HorizonEvent
-
Represents the destination arrival event to notify when the destination has been reached.
See moreDeclaration
Swift
public enum DestinationArrivalEvent
-
Represents waypoint arrival events to notify when a waypoint has been reached or departed from.
See moreDeclaration
Swift
public enum WaypointArrivalEvent
-
Represents the language change event.
See moreDeclaration
Swift
public enum LanguageChangeEvent