TOTAL_CALORIES

The aggregate operation to obtain the total calories in the retrieved ExerciseType data.

This helps to create an AggregateRequest instance to get the exercise data's total calories simply and easily.

This aggregate operation allows the application to set the following:

// set a Local date time range from midnight to now
val currentTime = LocalTime.now()
val localTimeFilter = LocalTimeFilter.of(LocalTime.MIDNIGHT, currentTime)

val aggregateRequest = DataType.ExerciseType.TOTAL_CALORIES.requestBuilder
    .setLocalTimeFilter(localTimeFilter)
    .setOrdering(Ordering.DESC)
    // set other conditions
    .build()

Since

1.0.0

See also

Preferences Submitted

You have successfully updated your cookie preferences.