HeartRateRecord.Sample


class HeartRateRecord.Sample


Represents a single measurement of the heart rate.

See also
HeartRateRecord

Summary

Public constructors

Sample(time: Instant, beatsPerMinute: @IntRange(from = 1, to = 300) Long)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Long

Heart beats per minute.

Instant

The point in time when the measurement was taken.

Public constructors

Sample

Added in 1.1.0-alpha07
Sample(time: Instant, beatsPerMinute: @IntRange(from = 1, to = 300) Long)
Parameters
time: Instant

The point in time when the measurement was taken.

beatsPerMinute: @IntRange(from = 1, to = 300) Long

Heart beats per minute. Validation range: 1-300.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

beatsPerMinute

Added in 1.1.0-alpha07
val beatsPerMinuteLong

Heart beats per minute. Validation range: 1-300.

time

Added in 1.1.0-alpha07
val timeInstant

The point in time when the measurement was taken.