AudioDevice

An audio output a call can be routed to.

SPEAKER_PHONE is always available. EARPIECE is listed only on a handset that has one, and only while no wired headset is plugged in. The external devices appear and disappear with the hardware, which is what Room.setAudioDeviceChangeListener reports.

Entries

Link copied to clipboard

The loudspeaker. Always available, and the fallback when nothing else is.

Link copied to clipboard

A wired headset or USB headset. Preferred over Bluetooth when both are already connected.

Link copied to clipboard

The handset earpiece. Absent on tablets, and hidden while a wired headset is connected.

Link copied to clipboard

A connected Bluetooth headset or speaker.

Link copied to clipboard

No device. Passing its name to Room.changeMic routes audio nowhere.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.