LAST_CALORIES

The aggregate operation to obtain the last nutrition goal in kilocalories.

This helps to create an AggregateRequest instance to get the last nutrition goal simply and easily.

This aggregate operation allows the application to set the following:

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

If the user did not set the nutrition 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.