Package com.mapbox.navigation.ui.voice.api

Types

Link copied to clipboard
interface AsyncAudioFocusDelegate

An Api that allows you to interact with the audio focus in an asynchronous way.

Link copied to clipboard
interface AudioFocusDelegate

An Api that allows you to interact with the audio focus

Link copied to clipboard
object AudioFocusDelegateProvider

Factory for creating default instance of AsyncAudioFocusDelegate.

Link copied to clipboard
fun interface AudioFocusRequestCallback

Interface definition for a callback to be invoked when a player requests audio focus

Link copied to clipboard
class MapboxAudioGuidance : MapboxNavigationObserver

Implementation of MapboxAudioGuidance. See interface for details.

Link copied to clipboard
class MapboxAudioGuidanceState

Represents the state of MapboxAudioGuidance.

Link copied to clipboard
class MapboxSpeechApi @JvmOverloads constructor(    context: Context,     accessToken: String,     language: String,     options: MapboxSpeechApiOptions = MapboxSpeechApiOptions.Builder().build())

Mapbox Speech Api that allows you to generate an announcement based on VoiceInstructions

Link copied to clipboard
class MapboxVoiceInstructionsPlayer @JvmOverloads constructor(    context: Context,     language: String,     options: VoiceInstructionsPlayerOptions = defaultOptions(),     audioFocusDelegate: AsyncAudioFocusDelegate = defaultAudioFocusDelegate(context, options),     timerFactory: Provider<Timer> = defaultTimerFactory())

Hybrid implementation of MapboxVoiceInstructionsPlayer combining VoiceInstructionsTextPlayer and VoiceInstructionsFilePlayer speech players.

Link copied to clipboard
sealed class VoiceInstructionsPlayerAttributes

PlayerAttributes implements attributes that define how the audio system handles routing and focus decisions for the specified source.