PowerRecord
class PowerRecord : Record
Captures the power generated by the user, e.g. during cycling or rowing with a power meter. Each record represents a series of measurements.
Summary
Nested types |
|---|
class PowerRecord.SampleRepresents a single measurement of power. |
Public companion properties |
|
|---|---|
AggregateMetric<Power> |
Metric identifier to retrieve average power from |
AggregateMetric<Power> |
Metric identifier to retrieve maximum power from |
AggregateMetric<Power> |
Metric identifier to retrieve minimum power from |
Public constructors |
|---|
PowerRecord( |
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<PowerRecord.Sample> |
|
open Instant |
Start time of the record. |
open ZoneOffset? |
User experienced zone offset at |
Public companion properties
POWER_AVG
val POWER_AVG: AggregateMetric<Power>
Metric identifier to retrieve average power from androidx.health.connect.client.aggregate.AggregationResult.
POWER_MAX
val POWER_MAX: AggregateMetric<Power>
Metric identifier to retrieve maximum power from androidx.health.connect.client.aggregate.AggregationResult.
POWER_MIN
val POWER_MIN: AggregateMetric<Power>
Metric identifier to retrieve minimum power from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
PowerRecord
PowerRecord(
startTime: Instant,
startZoneOffset: ZoneOffset?,
endTime: Instant,
endZoneOffset: ZoneOffset?,
samples: List<PowerRecord.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.