SleepRecord

@Serializable
@SerialName(value = "sleep")
data class SleepRecord(val startTime: Instant, val endTime: Instant, val stage: Int) : IntervalRecord

Captures the user's sleep data.

Constructors

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

Properties

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
val stage: Int
Link copied to clipboard
open override val startTime: Instant

Start time of the record.

Link copied to clipboard
open override val typeIdentifier: Int = 10