Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 1.57 KB

voice-react-native-sdk.audiodevice_class.md

File metadata and controls

35 lines (21 loc) · 1.57 KB

Home > @twilio/voice-react-native-sdk > AudioDevice

AudioDevice class

Describes audio devices as reported by the native layer and allows the native selection of the described audio device.

Signature:

export declare class AudioDevice 

Remarks

To fetch a list of available audio devices and the currently selected audio device, see Voice.getAudioDevices().

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the AudioDevice class.

Properties

Property Modifiers Type Description
name string The name of the audio device.
type AudioDevice.Type The type of the audio device.

Methods

Method Modifiers Description
select() Calling this method will select this audio device as the active audio device.