CyclingPedalingCadenceRecord


public final class CyclingPedalingCadenceRecord implements Record


Captures the user's cycling pedaling cadence. Each record represents a series of measurements.

Summary

Nested types

Represents a single measurement of the cycling pedaling cadence.

Public fields

static final @NonNull AggregateMetric<@NonNull Double>

Metric identifier to retrieve average cycling pedaling cadence from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Double>

Metric identifier to retrieve maximum cycling pedaling cadence from androidx.health.connect.client.aggregate.AggregationResult.

static final @NonNull AggregateMetric<@NonNull Double>

Metric identifier to retrieve minimum cycling pedaling cadence from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

CyclingPedalingCadenceRecord(
    @NonNull Instant startTime,
    ZoneOffset startZoneOffset,
    @NonNull Instant endTime,
    ZoneOffset endZoneOffset,
    @NonNull List<@NonNull CyclingPedalingCadenceRecord.Sample> samples,
    @NonNull Metadata metadata
)

Public methods

boolean
equals(Object other)
@NonNull Instant

End time of the record.

ZoneOffset

User experienced zone offset at endTime, or null if unknown.

@NonNull Metadata

Set of common metadata associated with the written record.

@NonNull List<@NonNull CyclingPedalingCadenceRecord.Sample>
@NonNull Instant

Start time of the record.

ZoneOffset

User experienced zone offset at startTime, or null if unknown.

int
@NonNull String

Public fields

RPM_AVG

public static final @NonNull AggregateMetric<@NonNull DoubleRPM_AVG

Metric identifier to retrieve average cycling pedaling cadence from androidx.health.connect.client.aggregate.AggregationResult.

RPM_MAX

public static final @NonNull AggregateMetric<@NonNull DoubleRPM_MAX

Metric identifier to retrieve maximum cycling pedaling cadence from androidx.health.connect.client.aggregate.AggregationResult.

RPM_MIN

public static final @NonNull AggregateMetric<@NonNull DoubleRPM_MIN

Metric identifier to retrieve minimum cycling pedaling cadence from androidx.health.connect.client.aggregate.AggregationResult.

Public constructors

CyclingPedalingCadenceRecord

Added in 1.1.0-alpha10
public CyclingPedalingCadenceRecord(
    @NonNull Instant startTime,
    ZoneOffset startZoneOffset,
    @NonNull Instant endTime,
    ZoneOffset endZoneOffset,
    @NonNull List<@NonNull CyclingPedalingCadenceRecord.Sample> samples,
    @NonNull Metadata metadata
)

Public methods

equals

public boolean equals(Object other)

getEndTime

Added in 1.1.0-alpha10
public @NonNull Instant getEndTime()

End time of the record.

getEndZoneOffset

Added in 1.1.0-alpha10
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

Added in 1.1.0-alpha10
public @NonNull Metadata getMetadata()

Set of common metadata associated with the written record.

getStartTime

Added in 1.1.0-alpha10
public @NonNull Instant getStartTime()

Start time of the record.

getStartZoneOffset

Added in 1.1.0-alpha10
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.

hashCode

public int hashCode()

toString

public @NonNull String toString()