RelevantVoiceInstructionsCallback

@MapboxExperimental
fun interface RelevantVoiceInstructionsCallback

Observer that receives the relevant voice instructions available.

This observer is designed for one-time fetching of voice instructions. After the callback is invoked, the observer is automatically unregistered by the SDK. You do not need to manually unregister it.

Note: The observer will be called from the main thread when the voice instruction is retrieved.

To fetch voice instructions again, simply register the observer again using MapboxNavigation.registerRelevantVoiceInstructionsCallback.

See also

Functions

Link copied to clipboard
abstract fun onRelevantVoiceInstructionsReceived(voiceInstructions: List<VoiceInstructions>)

Called with the relevant voice instructions available.