ExerciseLapSummary

public data final class ExerciseLapSummary


Describes a completed exercise lap.

Summary

Public fields

final @NonNull Duration

Returns the total elapsed time for which the exercise has been active during this lap, i.e.

final @NonNull Instant

Returns the time at which the lap has ended.

final int

Returns the lap count of this summary.

final @NonNull Map<@NonNull DataType, @NonNull DataPoint>

Returns the DataPoint s for each metric keyed by DataType tracked between startTime and endTime i.e.

final @NonNull Instant

Returns the time at which the lap has started.

Public constructors

ExerciseLapSummary(
    int lapCount,
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    @NonNull Duration activeDuration,
    @NonNull Map<@NonNull DataType, @NonNull DataPoint> lapMetrics
)

Public methods

int
void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

activeDuration

@NonNull
public final @NonNull Duration activeDuration

Returns the total elapsed time for which the exercise has been active during this lap, i.e. started but not paused.

endTime

@NonNull
public final @NonNull Instant endTime

Returns the time at which the lap has ended.

lapCount

@NonNull
public final int lapCount

Returns the lap count of this summary. Lap count starts at 1 for the first lap.

lapMetrics

@NonNull
public final @NonNull Map<@NonNull DataType, @NonNull DataPointlapMetrics

Returns the DataPoint s for each metric keyed by DataType tracked between startTime and endTime i.e. during the duration of this lap. This will only contain aggregated DataType s calculated over the duration of the lap.

startTime

@NonNull
public final @NonNull Instant startTime

Returns the time at which the lap has started.

Public constructors

ExerciseLapSummary

public final ExerciseLapSummary(
    int lapCount,
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    @NonNull Duration activeDuration,
    @NonNull Map<@NonNull DataType, @NonNull DataPoint> lapMetrics
)

Public methods

describeContents

@NonNull
public int describeContents()

writeToParcel

@NonNull
public void writeToParcel(@NonNull Parcel dest, int flags)