MilestoneMarkerSummary

public data final class MilestoneMarkerSummary


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 DataPoint>

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

Public constructors

MilestoneMarkerSummary(
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    @NonNull Duration activeDuration,
    @NonNull AchievedExerciseGoal achievedGoal,
    @NonNull Map<@NonNull DataType, @NonNull DataPoint> summaryMetrics
)

Public methods

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

Public fields

achievedGoal

@NonNull
public final @NonNull AchievedExerciseGoal achievedGoal

The AchievedExerciseGoal that triggered this milestone summary.

activeDuration

@NonNull
public final @NonNull Duration activeDuration

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

endTime

@NonNull
public final @NonNull Instant endTime

Returns the time at which this milestone marker was reached.

startTime

@NonNull
public final @NonNull Instant startTime

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

summaryMetrics

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

Returns the DataPoint for each aggregated metric keyed by DataType tracked between startTime and endTime i.e. during the duration of this milestone.

Public constructors

MilestoneMarkerSummary

public final MilestoneMarkerSummary(
    @NonNull Instant startTime,
    @NonNull Instant endTime,
    @NonNull Duration activeDuration,
    @NonNull AchievedExerciseGoal achievedGoal,
    @NonNull Map<@NonNull DataType, @NonNull DataPoint> summaryMetrics
)

Public methods

describeContents

@NonNull
public int describeContents()

writeToParcel

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