Package io.heraldprox.herald.sensor.data
Class EventTimeIntervalLog
- java.lang.Object
-
- io.heraldprox.herald.sensor.DefaultSensorDelegate
-
- io.heraldprox.herald.sensor.data.EventTimeIntervalLog
-
- All Implemented Interfaces:
SensorDelegate
public class EventTimeIntervalLog extends DefaultSensorDelegate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventTimeIntervalLog.EventType
-
Constructor Summary
Constructors Constructor Description EventTimeIntervalLog(android.content.Context context, java.lang.String filename, PayloadData payloadData, EventTimeIntervalLog.EventType eventType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sensor(SensorType sensor, Location didVisit)
Detection of time spent at location, e.g.void
sensor(SensorType sensor, PayloadData didRead, TargetIdentifier fromTarget)
Read payload data from target, e.g.void
sensor(SensorType sensor, Proximity didMeasure, TargetIdentifier fromTarget)
Measure proximity to target, e.g.void
sensor(SensorType sensor, TargetIdentifier didDetect)
Detection of a target with an ephemeral identifier, 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.-
Methods inherited from class io.heraldprox.herald.sensor.DefaultSensorDelegate
sensor, sensor, sensor
-
-
-
-
Constructor Detail
-
EventTimeIntervalLog
public EventTimeIntervalLog(@NonNull android.content.Context context, @NonNull java.lang.String filename, @NonNull PayloadData payloadData, @NonNull EventTimeIntervalLog.EventType eventType)
-
-
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 TargetIdentifier didDetect)
Description copied from interface:SensorDelegate
Detection of a target with an ephemeral identifier, e.g. BLE central detecting a BLE peripheral.- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull Proximity didMeasure, @NonNull TargetIdentifier fromTarget)
Description copied from interface:SensorDelegate
Measure proximity to target, e.g. a sample of RSSI values from BLE peripheral.- 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
-
sensor
public void sensor(@NonNull SensorType sensor, @NonNull Location didVisit)
Description copied from interface:SensorDelegate
Detection of time spent at location, e.g. at specific restaurant between 02/06/2020 19:00 and 02/06/2020 21:00- Specified by:
sensor
in interfaceSensorDelegate
- Overrides:
sensor
in classDefaultSensorDelegate
-
-