Builder

class Builder

Build a new VoiceInstructionsPlayerOptions

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): VoiceInstructionsPlayerOptions
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
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.