scan Devices
abstract fun scanDevices(timeout: Long, stopOnFirstDeviceDiscovered: Boolean, deviceScannerSpi: DeviceScannerSpi)
Content copied to clipboard
Starts the device scanning. The scan stops either at the first compatible device found or after the time specified by timeout. In all cases, the results are returned asynchronously to the caller who must provide an object implementing DeviceScannerSpi.
Since
1.0.0
Parameters
timeout
The maximum scan time in milliseconds.
stopOnFirstDeviceDiscovered
True to stop the scan as soon as a compatible device is found.
deviceScannerSpi
An object implementing the callback method.
Throws
org.eclipse.keyple.core.plugin.ReaderIOException
If an error occurred during the device scanning.