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 SummaryModifier and TypeMethodDescriptionvoidExecutes a single scan for serial ports provided by USB devices; informs listeners about all discovered devices (including those discovered in a previous scan).voidRegisters anUsbSerialDiscoveryListenerthat is then notified about discovered serial ports and USB, including those already found during previous scan.voidStarts scanning for serial ports provided by USB devices in the background; informs listeners about newly discovered devices.voidStops scanning for serial ports provided by USB devices in the background.voidUnregisters anUsbSerialDiscoveryListener.
- 
Method Details- 
doSingleScanvoid 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).
- 
startBackgroundScanningvoid startBackgroundScanning()Starts scanning for serial ports provided by USB devices in the background; informs listeners about newly discovered devices. Should return fast.
- 
stopBackgroundScanningvoid stopBackgroundScanning()Stops scanning for serial ports provided by USB devices in the background. Should return fast.
- 
registerDiscoveryListenerRegisters anUsbSerialDiscoveryListenerthat is then notified about discovered serial ports and USB, including those already found during previous scan. devices.
- 
unregisterDiscoveryListenerUnregisters anUsbSerialDiscoveryListener.
 
-