audioDeviceStateChanged property
Occurs when the audio device state changes. This callback notifies the application that the system's audio device state is changed. For example, a headset is unplugged from the device. This method is for Windows and macOS only.
Param deviceId
The device ID.
Param deviceType
The device type.
Param deviceState
The device state. on macOS: 0: The device is ready for use.
8: The device is not connected. On Windows: MediaDeviceStateType .
Implementation
AudioDeviceStateChanged? audioDeviceStateChanged;