SpeedRecord
class SpeedRecord : Record
Captures the user's speed, e.g. during running or cycling. Each record represents a series of measurements.
Summary
Nested types |
|---|
class SpeedRecord.SampleRepresents a single measurement of the speed, a scalar magnitude. |
Public companion properties |
|
|---|---|
AggregateMetric<Velocity> |
Metric identifier to retrieve average speed from |
AggregateMetric<Velocity> |
Metric identifier to retrieve maximum speed from |
AggregateMetric<Velocity> |
Metric identifier to retrieve minimum speed from |
Public constructors |
|---|
SpeedRecord( |
Public properties |
|
|---|---|
open Instant |
End time of the record. |
open ZoneOffset? |
User experienced zone offset at |
open Metadata |
Set of common metadata associated with the written record. |
open List<SpeedRecord.Sample> |
|
open Instant |
Start time of the record. |
open ZoneOffset? |
User experienced zone offset at |
Public companion properties
SPEED_AVG
val SPEED_AVG: AggregateMetric<Velocity>
Metric identifier to retrieve average speed from androidx.health.connect.client.aggregate.AggregationResult.
SPEED_MAX
val SPEED_MAX: AggregateMetric<Velocity>
Metric identifier to retrieve maximum speed from androidx.health.connect.client.aggregate.AggregationResult.
SPEED_MIN
val SPEED_MIN: AggregateMetric<Velocity>
Metric identifier to retrieve minimum speed from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
SpeedRecord
SpeedRecord(
startTime: Instant,
startZoneOffset: ZoneOffset?,
endTime: Instant,
endZoneOffset: ZoneOffset?,
samples: List<SpeedRecord.Sample>,
metadata: Metadata
)
Public functions
Public properties
endZoneOffset
open val endZoneOffset: ZoneOffset?
User experienced zone offset at endTime, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.
startZoneOffset
open val startZoneOffset: ZoneOffset?
User experienced zone offset at startTime, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.