StepsRecord

@Serializable
data class StepsRecord(val startTime: Instant, val endTime: Instant, val count: Int) : IntervalRecord

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

Valid range: 1-1_000_000

Constructors

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

Properties

Link copied to clipboard
val count: Int
Link copied to clipboard
open override val dataType: HealthDataType
Link copied to clipboard
open override val endTime: Instant

End time of the record.

Link copied to clipboard
open override val startTime: Instant

Start time of the record.