Added in API level 34

StepsCadenceRecordSample

class StepsCadenceRecordSample
kotlin.Any
   ↳ android.health.connect.datatypes.StepsCadenceRecord.StepsCadenceRecordSample

Represents a single measurement of the steps cadence.

Summary

Public constructors

StepsCadenceRecord sample for entries of StepsCadenceRecord

Public methods
Boolean
equals(other: Any?)

Indicates whether some other object is "equal to" this one.

Double

Instant

Int

Returns a hash code value for the object.

Public constructors

StepsCadenceRecordSample

Added in API level 34
StepsCadenceRecordSample(
    rate: Double,
    time: Instant)

StepsCadenceRecord sample for entries of StepsCadenceRecord

Parameters
rate Double: Rate in steps 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

getRate

Added in API level 34
fun getRate(): Double
Return
Double Rate 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.