Interface UsbSerialDiscovery
@NonNullByDefault
public interface UsbSerialDiscovery
Interface for implementations for discovering serial ports provided by a USB device. An implementation of this
interface is required by the
UsbSerialDiscoveryService
.- Author:
- Henning Sudbrock - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Executes a single scan for serial ports provided by USB devices; informs listeners about all discovered devices (including those discovered in a previous scan).void
Registers anUsbSerialDiscoveryListener
that is then notified about discovered serial ports and USB, including those already found during previous scan.void
Starts scanning for serial ports provided by USB devices in the background; informs listeners about newly discovered devices.void
Stops scanning for serial ports provided by USB devices in the background.void
Unregisters anUsbSerialDiscoveryListener
.
-
Method Details
-
doSingleScan
void doSingleScan()Executes a single scan for serial ports provided by USB devices; informs listeners about all discovered devices (including those discovered in a previous scan). -
startBackgroundScanning
void startBackgroundScanning()Starts scanning for serial ports provided by USB devices in the background; informs listeners about newly discovered devices. Should return fast. -
stopBackgroundScanning
void stopBackgroundScanning()Stops scanning for serial ports provided by USB devices in the background. Should return fast. -
registerDiscoveryListener
Registers anUsbSerialDiscoveryListener
that is then notified about discovered serial ports and USB, including those already found during previous scan. devices. -
unregisterDiscoveryListener
Unregisters anUsbSerialDiscoveryListener
.
-