SpeedRecord
class SpeedRecord : IntervalRecord
kotlin.Any | |||
↳ | android.health.connect.datatypes.Record | ||
↳ | android.health.connect.datatypes.IntervalRecord | ||
↳ | android.health.connect.datatypes.SpeedRecord |
Captures the user's speed, e.g. during running or cycling.
Summary
Nested classes | |
---|---|
Builder class for |
|
Represents a single measurement of the speed, a scalar magnitude. |
Public methods | |
---|---|
Boolean |
Indicates whether some other object is "equal to" this one. |
MutableList<SpeedRecord.SpeedRecordSample!> | |
Int |
hashCode() Returns a hash code value for the object. |
Inherited functions | |
---|---|
Properties | |
---|---|
static AggregationType<Velocity!> |
Metric identifier to retrieve average speed using aggregate APIs in |
static AggregationType<Velocity!> |
Metric identifier to retrieve maximum speed using aggregate APIs in |
static AggregationType<Velocity!> |
Metric identifier to retrieve minimum speed using aggregate APIs in |
Public methods
equals
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 |
getSamples
fun getSamples(): MutableList<SpeedRecord.SpeedRecordSample!>
Return | |
---|---|
MutableList<SpeedRecord.SpeedRecordSample!> |
SpeedRecord samples corresponding to this record This value cannot be null . |
hashCode
fun hashCode(): Int
Returns a hash code value for the object.
Return | |
---|---|
Int |
a hash code value for this object. |
Properties
SPEED_AVG
static val SPEED_AVG: AggregationType<Velocity!>
Metric identifier to retrieve average speed using aggregate APIs in HealthConnectManager
SPEED_MAX
static val SPEED_MAX: AggregationType<Velocity!>
Metric identifier to retrieve maximum speed using aggregate APIs in HealthConnectManager
SPEED_MIN
static val SPEED_MIN: AggregationType<Velocity!>
Metric identifier to retrieve minimum speed using aggregate APIs in HealthConnectManager