Audio Switch Handler
An AudioHandler built on top of AudioSwitch.
The various settings should be set before connecting to a Room and start is called.
Properties
The audio attribute content type to use when requesting audio focus on devices O and beyond.
The audio attribute usage type to use when requesting audio focus on devices O and beyond.
Listen to changes in the available and active audio devices.
The audio stream type to use when requesting audio focus on pre-O devices.
The available audio devices. This requires calling start before it is populated.
On certain Android devices, audio routing does not function properly and bluetooth microphones will not work unless audio mode is set to AudioManager.MODE_IN_COMMUNICATION or AudioManager.MODE_IN_CALL.
Toggle whether logging is enabled for AudioSwitch. By default, this is set to false.
When true, AudioSwitchHandler will request audio focus on start and abandon on stop.
Listen to changes in audio focus.
The preferred priority of audio devices to use. The first available audio device will be used.
The currently selected audio device, or null if none (or this handler is not started).