Added in API level 34
HeartRateSample
class HeartRateSample
kotlin.Any | |
↳ | android.health.connect.datatypes.HeartRateRecord.HeartRateSample |
A class to represent heart rate samples
Summary
Public constructors | |
---|---|
HeartRateSample(beatsPerMinute: Long, time: Instant) Heart rate sample for entries of |
Public methods | |
---|---|
Boolean |
Indicates whether some other object is "equal to" this one. |
Long | |
Instant |
getTime() |
Int |
hashCode() Returns a hash code value for the object. |
Public constructors
HeartRateSample
Added in API level 34
HeartRateSample(
beatsPerMinute: Long,
time: Instant)
Heart rate sample for entries of HeartRateRecord
Parameters | |
---|---|
beatsPerMinute |
Long: Heart beats per minute. |
time |
Instant: The point in time when the measurement was taken. This value cannot be null . |
Public methods
equals
Added in API level 34
fun equals(other: Any?): Boolean
Indicates whether some other object is "equal to" this one.
Parameters | |
---|---|
obj |
the reference object with which to compare. |
object |
the reference object with which to compare. This value may be null . |
Return | |
---|---|
Boolean |
true if this object is the same as the obj |
getBeatsPerMinute
Added in API level 34
fun getBeatsPerMinute(): Long
Return | |
---|---|
Long |
beats per minute for this sample |
getTime
Added in API level 34
fun getTime(): Instant
Return | |
---|---|
Instant |
time at which this sample was recorded This value cannot be null . |
hashCode
Added in API level 34
fun hashCode(): Int
Returns a hash code value for the object.
Return | |
---|---|
Int |
a hash code value for this object. |