NavigationGuidanceObserver
@available(*, deprecated, message: "This API is deprecated and will be removed with the next major release.\nPlease use TomTomSDKNavigation.GuidanceUpdateObserver and TomTomSDKNavigation.LaneGuidanceUpdateObserver instead.")
public protocol NavigationGuidanceObserver : Observer
Declares an observer that can receive navigation guidance events.
-
Notifies that instructions have been updated.
Declaration
Swift
func didUpdateInstructions(instructions: [GuidanceInstruction])
Parameters
instructions
The new instructions.
-
Notifies that the distance to the next instruction has been updated.
Declaration
Swift
func didUpdateDistanceToNextInstruction( distance: Measurement<UnitLength>, instructions: [GuidanceInstruction], currentPhase: InstructionPhase )
Parameters
distance
The distance to the next instruction.
instructions
The next instructions.
currentPhase
The current instruction phase.
-
Notifies that a new announcement has been generated.
Declaration
Swift
func didGenerateAnnouncement(announcement: GuidanceAnnouncement, shouldPlay: Bool)
Parameters
announcement
The new announcement.
shouldPlay
Flag indicating whether the announcement should be played.
-
Notifies that new lane guidance has been generated
Declaration
Swift
func didStartLaneGuidance(laneGuidance: LaneGuidance)
Parameters
laneGuidance
The new lane guidance.
-
Notifies that lane guidance should be hidden.
Declaration
Swift
func didEndLaneGuidance(laneGuidance: LaneGuidance)
Parameters
laneGuidance
The lane guidance that should be hidden.