StepCount

data class StepCount(val count: Long, val startTime: Instant, val endTime: Instant) : KHRecord

Captures the number of steps taken since the last reading. Each step is only reported once so records shouldn't have overlapping time. The start time of each record should represent the start of the interval in which steps were taken.

The start time must be equal to or greater than the end time of the previous record. Adding all of the values together for a period of time calculates the total number of steps during that period.

Parameters

count

The number of steps taken

startTime

The start instant of the interval over which the value this record was captured

endTime

The end instant of the interval over which the value this record was captured

Constructors

Link copied to clipboard
constructor(count: Long, startTime: Instant, endTime: Instant)

Properties

Link copied to clipboard
val count: Long
Link copied to clipboard
val endTime: Instant
Link copied to clipboard
val startTime: Instant