Builder

class Builder

Build a new VoiceInstructionsPlayerOptions

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): VoiceInstructionsPlayerOptions
checkIsLanguageAvailable
Link copied to clipboard
fun checkIsLanguageAvailable(checkIsLanguageAvailable: Boolean): VoiceInstructionsPlayerOptions.Builder
Checks if the specified language as represented by the Locale is available and supported by TTS.
contentType
Link copied to clipboard
fun contentType(contentType: Int): VoiceInstructionsPlayerOptions.Builder
Specifies what source is playing (music, movie, speech, sonification, unknown).
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
focusGain
Link copied to clipboard
fun focusGain(focusGain: Int): VoiceInstructionsPlayerOptions.Builder
Specifies how audio focus will be requested.
hashCode
Link copied to clipboard
open fun hashCode(): Int
streamType
Link copied to clipboard
fun streamType(streamType: Int): VoiceInstructionsPlayerOptions.Builder
Specifies which stream will be used for playing Defaults to AudioManager.STREAM_MUSIC See AudioManager for a list of stream types.
toString
Link copied to clipboard
open fun toString(): String
ttsStreamType
Link copied to clipboard
fun ttsStreamType(streamType: Int): VoiceInstructionsPlayerOptions.Builder
Specifies which stream will be used for playing TTS Defaults to AudioManager.STREAM_MUSIC See AudioManager for a list of stream types.
usage
Link copied to clipboard
fun usage(usage: Int): VoiceInstructionsPlayerOptions.Builder
Specifies which stream will be used for playing Defaults to AudioManager.STREAM_MUSIC See AudioManager for a list of stream types.
useLegacyApi
Link copied to clipboard
fun useLegacyApi(useLegacyApi: Boolean): VoiceInstructionsPlayerOptions.Builder
Specifies attributes as inferred from the legacy stream types.