TOTAL_CALORIES

The aggregate operation to obtain the total calories of the food in kilocalories.

This helps to create an AggregateRequest instance to get the total calories of the food simply and easily.

This aggregate operation allows the application to set the following:

// set a Local date time range from midnight to now
val startOfDay = LocalDate.now().atStartOfDay()
val now = LocalDateDate.now()

val aggregateRequest = DataType.Nutrition.TOTAL_CALORIES.requestBuilder
    .setLocalTimeFilter(localTimeFilter)
    ... // set some filters or conditions
    .build()

Since

1.0.0

See also

Preferences Submitted

You have successfully updated your cookie preferences.