AudioFocusHandler

@Singleton
open class AudioFocusHandler @Inject constructor(context: Context) : AudioHandler

A basic AudioHandler that manages audio focus while started.

Constructors

Link copied to clipboard
@Inject
constructor(context: Context)

Properties

Link copied to clipboard

The audio attribute content type to use when requesting audio focus on devices O and beyond.

Link copied to clipboard

The audio attribute usage type to use when requesting audio focus on devices O and beyond.

Link copied to clipboard

The audio stream type to use when requesting audio focus on pre-O devices.

Link copied to clipboard

The audio focus mode to use while started.

Link copied to clipboard

Set this to listen to audio focus changes.

Functions

Link copied to clipboard

Creates the request used when requesting audio focus.

Link copied to clipboard
open override fun start()

Called when a room is started.

Link copied to clipboard
open override fun stop()

Called when a room is disconnected.