GuidanceUpdateEvent
public enum GuidanceUpdateEvent
Represents guidance update events.
The enumeration is a parameter of TomTomSDKNavigation/NavigationEvent/guidanceUpdateEvent(_:) which is called when guidance update occurs.
-
Indicates the instructions are updated.
Declaration
Swift
case didUpdateInstructions(instructions: [GuidanceInstruction])Parameters
instructionsThe ordered list of next instructions along the route. The number of instructions provided is determined by the internal threshold.
-
Indicates an announcement is generated.
Declaration
Swift
case didGenerateAnnouncement(announcement: GuidanceAnnouncement, shouldPlay: Bool)Parameters
announcementAnnouncement about the upcoming maneuver.
shouldPlayWhether announcement should be triggered according to guidelines.
-
Indicates the distance to next instruction is updated.
Declaration
Swift
case didUpdateDistanceToNextInstruction( distance: Measurement<UnitLength>, instructions: [GuidanceInstruction], currentPhase: InstructionPhase )Parameters
distanceThe updated distance to the next instruction. This provides the remaining distance to the next instruction.
instructionsThe ordered list of next instructions along the route. The number of instructions provided is determined by the internal threshold.
currentPhaseThe current phase of the instruction. The value indicates the stage of the current instruction.
TomTom SDK for iOS (0.53.1)
GuidanceUpdateEvent