VoiceInstructionsPrefetcher

class VoiceInstructionsPrefetcher : MapboxNavigationObserver

Class that is responsible for listening to relevant updates and triggering voice instructions predownloading when needed. Register and unregister with MapboxNavigationApp.registerObserver and MapboxNavigationApp.unregisterObserver or invoke onAttached and onDetached manually if you are not using MapboxNavigationApp.

Constructors

Link copied to clipboard
fun VoiceInstructionsPrefetcher(speechApi: MapboxSpeechApi)

Creates [VoiceInstructionsPrefetcher.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun onAttached(mapboxNavigation: MapboxNavigation)
Link copied to clipboard
open override fun onDetached(mapboxNavigation: MapboxNavigation)