LAST

The aggregate operation to obtain the last active calories burned goal in kilocalories.

This helps to create an AggregateRequest instance to get last active calories burned goal simply and easily.

This aggregate operation allows the application to set the following:

// set a Local date range with one week ago including today
val today = LocalDate.now()
val localDateFilter = LocalDateFilter.of(today.minusDays(6), today)

val aggregateRequest = DataType.ActiveCaloriesBurnedGoalType.LAST.requestBuilder
    .setLocalDateFilter(localDateFilter)
    .setOrdering(Ordering.DESC)
    // set other conditions
    .build()

If the user did not set the active calories burned goal before, a default value will be retrieved. Even if there is no set goal within the given date filter period, this aggregate operation gives the value that was last set.

Since

1.0.0

See also

Preferences Submitted

You have successfully updated your cookie preferences.