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
An observer that receives navigation guidance events.
-
Reports that instructions have been updated.
Declaration
Swift
func didUpdateInstructions(instructions: [GuidanceInstruction])
Parameters
instructions
The new instructions.
-
Reports 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.
-
Reports 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.
-
Reports that new lane guidance has been generated
Declaration
Swift
func didStartLaneGuidance(laneGuidance: LaneGuidance)
Parameters
laneGuidance
The new lane guidance.
-
Reports that lane guidance should be hidden.
Declaration
Swift
func didEndLaneGuidance(laneGuidance: LaneGuidance)
Parameters
laneGuidance
The lane guidance that should be hidden.