StepsCadenceRecord
public final class StepsCadenceRecord implements Record
Captures the user's steps cadence. Each record represents a series of measurements.
Summary
Nested types |
|---|
public final class StepsCadenceRecord.SampleRepresents a single measurement of the steps cadence. |
Public fields |
|
|---|---|
static final @NonNull AggregateMetric<@NonNull Double> |
Metric identifier to retrieve average steps cadence from |
static final @NonNull AggregateMetric<@NonNull Double> |
Metric identifier to retrieve maximum steps cadence from |
static final @NonNull AggregateMetric<@NonNull Double> |
Metric identifier to retrieve minimum steps cadence from |
Public constructors |
|---|
StepsCadenceRecord( |
Public methods |
|
|---|---|
boolean |
|
@NonNull Instant |
End time of the record. |
ZoneOffset |
User experienced zone offset at |
@NonNull Metadata |
Set of common metadata associated with the written record. |
@NonNull List<@NonNull StepsCadenceRecord.Sample> |
|
@NonNull Instant |
Start time of the record. |
ZoneOffset |
User experienced zone offset at |
int |
hashCode() |
@NonNull String |
toString() |
Public fields
RATE_AVG
public static final @NonNull AggregateMetric<@NonNull Double> RATE_AVG
Metric identifier to retrieve average steps cadence from androidx.health.connect.client.aggregate.AggregationResult.
RATE_MAX
public static final @NonNull AggregateMetric<@NonNull Double> RATE_MAX
Metric identifier to retrieve maximum steps cadence from androidx.health.connect.client.aggregate.AggregationResult.
RATE_MIN
public static final @NonNull AggregateMetric<@NonNull Double> RATE_MIN
Metric identifier to retrieve minimum steps cadence from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
StepsCadenceRecord
public StepsCadenceRecord(
@NonNull Instant startTime,
ZoneOffset startZoneOffset,
@NonNull Instant endTime,
ZoneOffset endZoneOffset,
@NonNull List<@NonNull StepsCadenceRecord.Sample> samples,
@NonNull Metadata metadata
)
Public methods
getEndZoneOffset
public ZoneOffset getEndZoneOffset()
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.
getMetadata
public @NonNull Metadata getMetadata()
Set of common metadata associated with the written record.
getStartZoneOffset
public ZoneOffset getStartZoneOffset()
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.