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
instructionsThe 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
distanceThe distance to the next instruction.
instructionsThe next instructions.
currentPhaseThe current instruction phase.
-
Notifies that a new announcement has been generated.
Declaration
Swift
func didGenerateAnnouncement(announcement: GuidanceAnnouncement, shouldPlay: Bool)Parameters
announcementThe new announcement.
shouldPlayFlag indicating whether the announcement should be played.
-
Notifies that new lane guidance has been generated
Declaration
Swift
func didStartLaneGuidance(laneGuidance: LaneGuidance)Parameters
laneGuidanceThe new lane guidance.
-
Notifies that lane guidance should be hidden.
Declaration
Swift
func didEndLaneGuidance(laneGuidance: LaneGuidance)Parameters
laneGuidanceThe lane guidance that should be hidden.
TomTom SDK for iOS (0.53.1)
NavigationGuidanceObserver