MilestoneMarkerSummary

public final class MilestoneMarkerSummary extends ProtoParcelable


The summary of metrics and state from the previously achieved milestone marker ExerciseGoal.

Summary

Public fields

final @NonNull AchievedExerciseGoal

The AchievedExerciseGoal that triggered this milestone summary.

final @NonNull Duration

Returns the total elapsed time for which the exercise was active during this milestone, i.e.

final @NonNull Instant

Returns the time at which this milestone marker was reached.

final @NonNull Instant

Returns the time at which this milestone marker started being tracked.

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

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

Public constructors

MilestoneMarkerSummary(
    Instant startTime,
    Instant endTime,
    Duration activeDuration,
    AchievedExerciseGoal achievedGoal,
    Map<DataTypeAggregateDataPoint> summaryMetrics
)

Public methods

@NonNull String

Inherited methods

From class ProtoParcelable
int
boolean