-
public interface PassiveBluetoothManager.BluetoothListener
The PassiveManager.BluetoothListener provides callbacks for peripheral monitoring bluetooth peripherals in the background.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
onSuccess(BluetoothPeripheral peripheral, BluetoothDevice device, List<Record> records)
Reading in the background succeeded for a peripheral. abstract Unit
onFail(BluetoothPeripheral peripheral, BluetoothDevice device, BluetoothError error)
Reading in the background failed for a peripheral abstract Unit
onPeripheralDiscovered(BluetoothPeripheral peripheral, BluetoothDevice device)
A peripheral was discovered while scanning in the background. abstract Unit
onBackgroundScanStart(Set<BluetoothPeripheral> peripherals)
Scanning has started in the background with a set of peripherals abstract Unit
onBackgroundScanStop()
Scanning has stopped in the background either due to a foreground controller starting or the user stopping passive scanning -
-
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 recordsdevice
- The Bluetooth Device that records were gathered fromrecords
- 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 errorerror
- 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
-
onBackgroundScanStart
abstract Unit onBackgroundScanStart(Set<BluetoothPeripheral> peripherals)
Scanning has started in the background with a set of peripherals
-
onBackgroundScanStop
abstract Unit onBackgroundScanStop()
Scanning has stopped in the background either due to a foreground controller starting or the user stopping passive scanning
-
-
-
-