AudioAttributes.Builder


class AudioAttributes.Builder


Builder for AudioAttributes.

Summary

Public constructors

Creates a new builder for AudioAttributes.

Public constructors

Builder

Builder()

Creates a new builder for AudioAttributes.

By default the content type is AUDIO_CONTENT_TYPE_UNKNOWN, usage is USAGE_MEDIA, capture policy is ALLOW_CAPTURE_BY_ALL and no flags are set.

Public functions

build

fun build(): AudioAttributes!

Creates an AudioAttributes instance from this builder.

setSpatializationBehavior

@CanIgnoreReturnValue
fun setSpatializationBehavior(
    @C.SpatializationBehavior spatializationBehavior: Int
): AudioAttributes.Builder!

See setSpatializationBehavior.