Added in API level 34

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 SpeedRecord

Represents a single measurement of the speed, a scalar magnitude.

Public methods
Boolean
equals(other: Any?)

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

MutableList<SpeedRecord.SpeedRecordSample!>

Int

Returns a hash code value for the object.

Inherited functions
Properties
static AggregationType<Velocity!>

Metric identifier to retrieve average speed using aggregate APIs in HealthConnectManager

static AggregationType<Velocity!>

Metric identifier to retrieve maximum speed using aggregate APIs in HealthConnectManager

static AggregationType<Velocity!>

Metric identifier to retrieve minimum speed using aggregate APIs in HealthConnectManager

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

getSamples

Added in API level 34
fun getSamples(): MutableList<SpeedRecord.SpeedRecordSample!>
Return
MutableList<SpeedRecord.SpeedRecordSample!> SpeedRecord samples corresponding to this record 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.

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