VoiceInstructionsObserver

fun interface VoiceInstructionsObserver

Voice instruction interface, which can be registered via MapboxNavigation.registerVoiceInstructionsObserver

Functions

Link copied to clipboard
abstract fun onNewVoiceInstructions(voiceInstructions: VoiceInstructions)

Called every time on a new VoiceInstructions is applicable. Only new voice instructions are available via this observer because the timing of delivering and playing out an instruction is critical for correct navigation experience. See {@link com.mapbox.navigation.base.trip.model.RouteProgress.voiceInstructions} to get a current voice instruction.