Audio Device Change Event
Receives audio-output changes — a headset plugged in, Bluetooth connecting, or Room.setAudioDevice routing elsewhere.
Register with Room.setAudioDeviceChangeListener. Process-wide and single: registering again replaces the previous listener, and it survives Room.leave.
Functions
Link copied to clipboard
abstract fun onAudioDeviceChanged(selectedAudioDevice: MicrophoneDeviceInfo?, audioDevices: List<MicrophoneDeviceInfo>)
Called whenever the device list or the active selection changes, and once immediately on registering — so the first call is the current state, not a change.