MapboxVoiceInstructionsPlayer

fun MapboxVoiceInstructionsPlayer(    context: Context,     language: String,     options: VoiceInstructionsPlayerOptions = defaultOptions(),     audioFocusDelegate: AudioFocusDelegate)


fun MapboxVoiceInstructionsPlayer(    context: Context,     language: String,     options: VoiceInstructionsPlayerOptions = defaultOptions(),     audioFocusDelegate: AsyncAudioFocusDelegate = defaultAudioFocusDelegate(context, options),     timerFactory: Provider<Timer> = defaultTimerFactory())

Parameters

context

Context

language

Locale language (in a format acceptable by Locale)

audioFocusDelegate
timerFactory

Provider (optional)