FloorsClimbedRecord
public final class FloorsClimbedRecord implements Record
Captures the number of floors climbed by the user since the last reading.
Summary
Public fields |
|
|---|---|
static final @NonNull AggregateMetric<@NonNull Double> |
Metric identifier to retrieve the total floors climbed from |
Public constructors |
|---|
FloorsClimbedRecord( |
Public methods |
|
|---|---|
boolean |
|
@NonNull Instant |
End time of the record. |
ZoneOffset |
User experienced zone offset at |
final double |
Number of floors. |
@NonNull Metadata |
Set of common metadata associated with the written record. |
@NonNull Instant |
Start time of the record. |
ZoneOffset |
User experienced zone offset at |
int |
hashCode() |
@NonNull String |
toString() |
Public fields
FLOORS_CLIMBED_TOTAL
public static final @NonNull AggregateMetric<@NonNull Double> FLOORS_CLIMBED_TOTAL
Metric identifier to retrieve the total floors climbed from androidx.health.connect.client.aggregate.AggregationResult.
Public constructors
FloorsClimbedRecord
public FloorsClimbedRecord(
@NonNull Instant startTime,
ZoneOffset startZoneOffset,
@NonNull Instant endTime,
ZoneOffset endZoneOffset,
double floors,
@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.
getFloors
public final double getFloors()
Number of floors. Required field. Valid range: 0-1000000.
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.