Package org.openmuc.framework.config
Interface DeviceScanListener
-
public interface DeviceScanListener
Interface to implement when you want to be informed about a device scan progress and results. Register your listener with configService.scanForDevices(..., listener).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
deviceFound(DeviceScanInfo scanInfo)
Called immediately when a new device has been found.void
scanError(java.lang.String message)
Called when there has been a scan error reported by the driver.void
scanFinished()
Called when scan is finished.void
scanInterrupted()
Called when scan was interrupted throughinterruptScanDevice()
void
scanProgress(int progress)
Called when scan is progressing.
-
-
-
Method Detail
-
deviceFound
void deviceFound(DeviceScanInfo scanInfo)
Called immediately when a new device has been found.- Parameters:
scanInfo
- the information of the device found
-
scanProgress
void scanProgress(int progress)
Called when scan is progressing.- Parameters:
progress
- the scan progress in percentage
-
scanFinished
void scanFinished()
Called when scan is finished.
-
scanInterrupted
void scanInterrupted()
Called when scan was interrupted throughinterruptScanDevice()
-
scanError
void scanError(java.lang.String message)
Called when there has been a scan error reported by the driver.- Parameters:
message
- the error message
-
-