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 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 through interruptScanDevice()
      • scanError

        void scanError​(java.lang.String message)
        Called when there has been a scan error reported by the driver.
        Parameters:
        message - the error message