Added in API level 34

Builder


class Builder

Builder class for AudioMixerAttributes objects.

Summary

Public constructors

Constructs a new Builder with the defaults.

Public methods
AudioMixerAttributes

Combines all attributes that have been set and returns a new AudioMixerAttributes object.

AudioMixerAttributes.Builder
setMixerBehavior(mixerBehavior: Int)

Sets the mixer behavior for the audio mixer

Public constructors

Builder

Added in API level 34
Builder(format: AudioFormat)

Constructs a new Builder with the defaults.

Parameters
format AudioFormat: the AudioFormat for the audio mixer. This value cannot be null.

Public methods

build

Added in API level 34
fun build(): AudioMixerAttributes

Combines all attributes that have been set and returns a new AudioMixerAttributes object.

Return
AudioMixerAttributes a new AudioMixerAttributes object This value cannot be null.

setMixerBehavior

Added in API level 34
fun setMixerBehavior(mixerBehavior: Int): AudioMixerAttributes.Builder

Sets the mixer behavior for the audio mixer

Return
AudioMixerAttributes.Builder the same Builder instance. This value cannot be null.