Package io.heraldprox.herald.sensor.data
Class DetectionLog
- java.lang.Object
-
- io.heraldprox.herald.sensor.DefaultSensorDelegate
-
- io.heraldprox.herald.sensor.data.DetectionLog
-
- All Implemented Interfaces:
SensorDelegate
public class DetectionLog extends DefaultSensorDelegate
-
-
Constructor Summary
Constructors Constructor Description DetectionLog(android.content.Context context, java.lang.String filename, PayloadData payloadData)
DetectionLog(android.content.Context context, java.lang.String filename, PayloadData payloadData, PayloadDataFormatter payloadDataFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sensor(SensorType sensor, PayloadData didRead, TargetIdentifier fromTarget)
Read payload data from target, e.g.void
sensor(SensorType sensor, java.util.List<PayloadData> didShare, TargetIdentifier fromTarget)
Read payload data of other targets recently acquired by a target, e.g.
-
-
-
Constructor Detail
-
DetectionLog
public DetectionLog(@NonNull android.content.Context context, @NonNull java.lang.String filename, @NonNull PayloadData payloadData, @NonNull PayloadDataFormatter payloadDataFormatter)
-
DetectionLog
public DetectionLog(@NonNull android.content.Context context, @NonNull java.lang.String filename, @NonNull PayloadData payloadData)
-
-
Method Detail
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull PayloadData didRead, @NonNull TargetIdentifier fromTarget)
Description copied from interface:SensorDelegate
Read payload data from target, e.g. encrypted device identifier from BLE peripheral after successful connection.- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull java.util.List<PayloadData> didShare, @NonNull TargetIdentifier fromTarget)
Description copied from interface:SensorDelegate
Read payload data of other targets recently acquired by a target, e.g. Android peripheral sharing payload data acquired from nearby iOS peripherals.- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
-