setInputDevice

open fun setInputDevice(@Nullable device: @Nullable InputDevice)

Sets an input device. This method also registers and unregisters (when replaced or removed) the device in event bus.

Parameters

device

The audio output device, or null to remove a current device from the manager.


abstract fun setInputDevice(@Nullable device: @Nullable InputDevice, @Nullable lastError: @Nullable Throwable)

Sets an input device. This method also registers and unregisters (when replaced or removed) the device in event bus.

Parameters

device

The audio output device, or null to remove a current device from the manager.

lastError

An error thrown when trying to open a device.