updateInstruction
open fun updateInstruction(@Nullable currentInstruction: RoutePointInstruction, @NonNull nextInstruction: RoutePointInstruction)
Updates the instruction UI and speaks the instruction using TTS. If a route was just recalculated, it adds a small delay before updating, to allow the recalculating state to be visible briefly.
Parameters
currentInstruction
instruction that user is currently on
nextInstruction
route point instruction to be shown next