Package 

Interface PassiveBluetoothManager.BluetoothListener

    • Method Detail

      • onSuccess

         abstract Unit onSuccess(BluetoothPeripheral peripheral, BluetoothDevice device, List<Record> records)

        Reading in the background succeeded for a peripheral. records will automatically be submitted to the Validic Api

        Parameters:
        peripheral - The peripheral that generated the records
        device - The Bluetooth Device that records were gathered from
        records - The records that were gathered in the background
      • onFail

         abstract Unit onFail(BluetoothPeripheral peripheral, BluetoothDevice device, BluetoothError error)

        Reading in the background failed for a peripheral

        Parameters:
        peripheral - The peripheral that generated a reading error
        error - The error generated while trying to read from the peripheral
      • onPeripheralDiscovered

         abstract Unit onPeripheralDiscovered(BluetoothPeripheral peripheral, BluetoothDevice device)

        A peripheral was discovered while scanning in the background. An attempt will be made to read from it.

        Parameters:
        peripheral - The peripheral that will be read from in the background
      • onBackgroundScanStop

         abstract Unit onBackgroundScanStop()

        Scanning has stopped in the background either due to a foreground controller starting or the user stopping passive scanning