-
- All Implemented Interfaces:
-
com.validic.mobile.ble.BluetoothPeripheralControllerListener
public class SimpleBluetoothPeripheralControllerListener implements BluetoothPeripheralControllerListener
The SimpleBluetoothControllerListener class is a default implementation of the BluetoothPeripheralControllerListener. Instantiating this class will allow use of the interface without having to implement every function.
-
-
Method Summary
Modifier and Type Method Description void
onPeripheralDiscovered(BluetoothPeripheralController peripheralController, BluetoothPeripheral peripheral)
Callback indicating a peripheral has been found during scanning boolean
onSuccess(BluetoothPeripheralController peripheralController, BluetoothPeripheral peripheral, List<Record> records)
Callback passing back the Record object with the measurement data received from the peripheral Notifies of the reading and asks if the record should be submitted to the Validic server void
onFail(BluetoothPeripheralController peripheralController, BluetoothPeripheral peripheral, BluetoothError error)
Callback indicating attempt to pair or to get a reading from the peripheralController failed -
-
Method Detail
-
onPeripheralDiscovered
void onPeripheralDiscovered(BluetoothPeripheralController peripheralController, BluetoothPeripheral peripheral)
Callback indicating a peripheral has been found during scanning
-
onSuccess
boolean onSuccess(BluetoothPeripheralController peripheralController, BluetoothPeripheral peripheral, List<Record> records)
Callback passing back the Record object with the measurement data received from the peripheral Notifies of the reading and asks if the record should be submitted to the Validic server
- Parameters:
peripheralController
- The bluetooth peripheral controller from which the reading was takenrecords
- The list of readings just taken.
-
onFail
void onFail(BluetoothPeripheralController peripheralController, BluetoothPeripheral peripheral, BluetoothError error)
Callback indicating attempt to pair or to get a reading from the peripheralController failed
-
-
-
-