Package io.heraldprox.herald.sensor.ble
Class ConcreteBLESensor
- java.lang.Object
-
- io.heraldprox.herald.sensor.ble.ConcreteBLESensor
-
- All Implemented Interfaces:
BLEDatabaseDelegate
,BLESensor
,BluetoothStateManagerDelegate
,Sensor
public class ConcreteBLESensor extends java.lang.Object implements BLESensor, BLEDatabaseDelegate, BluetoothStateManagerDelegate
-
-
Constructor Summary
Constructors Constructor Description ConcreteBLESensor(android.content.Context context, PayloadDataSupplier payloadDataSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SensorDelegate delegate)
void
bleDatabaseDidCreate(BLEDevice device)
void
bleDatabaseDidDelete(BLEDevice device)
void
bleDatabaseDidUpdate(BLEDevice device, BLEDeviceAttribute attribute)
void
bluetoothStateManager(BluetoothState didUpdateState)
boolean
immediateSend(Data data, TargetIdentifier targetIdentifier)
boolean
immediateSendAll(Data data)
void
start()
void
stop()
-
-
-
Constructor Detail
-
ConcreteBLESensor
public ConcreteBLESensor(@NonNull android.content.Context context, @NonNull PayloadDataSupplier payloadDataSupplier)
-
-
Method Detail
-
add
public void add(@NonNull SensorDelegate delegate)
-
immediateSend
public boolean immediateSend(@NonNull Data data, @NonNull TargetIdentifier targetIdentifier)
-
immediateSendAll
public boolean immediateSendAll(@NonNull Data data)
-
bleDatabaseDidCreate
public void bleDatabaseDidCreate(@NonNull BLEDevice device)
- Specified by:
bleDatabaseDidCreate
in interfaceBLEDatabaseDelegate
-
bleDatabaseDidUpdate
public void bleDatabaseDidUpdate(@NonNull BLEDevice device, @NonNull BLEDeviceAttribute attribute)
- Specified by:
bleDatabaseDidUpdate
in interfaceBLEDatabaseDelegate
-
bleDatabaseDidDelete
public void bleDatabaseDidDelete(@NonNull BLEDevice device)
- Specified by:
bleDatabaseDidDelete
in interfaceBLEDatabaseDelegate
-
bluetoothStateManager
public void bluetoothStateManager(@NonNull BluetoothState didUpdateState)
- Specified by:
bluetoothStateManager
in interfaceBluetoothStateManagerDelegate
-
-