StepEvent
A step event as sensed by the phone's built-in pedometer.
Collected by PedometerProbe for the SensorSamplingPackage.STEP_EVENT measure.
Normally, a step event is sent for each step taken by the user. But note that this depends on the underlying OS and hardware capabilities. steps is the number of steps taken since last reboot of the device. This number is accumulated by the OS and not reset when the app is restarted.
- Inheritance
-
- Object
- Serializable
- Data
- SensorData
- StepEvent
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
StepEvent.fromJson
StepEvent
- int steps = 0,
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
steps
getter/setter pair
Number of steps accumulated since last reboot of the device.
Methods
toJson
Return a JSON encoding of this object.