TOTAL

The aggregate operation to obtain total steps of the retrieved StepsType data.

This helps to create an AggregateRequest instance to get the total number of steps simply and easily.

This aggregate operation allows the app to set the following:

// set a Local date time range from midnight to now
val startOfDay = LocalDate.now().atStartOfDay()
val now = LocalDateTime.now()
val localTimeFilter = LocalDateFilter.of(startOfDay, now)

// set the local time group every hour
val localTimeGroup = LocalDateGroup.of(LocalTimeGroupUnit.HOURLY, 1)

val aggregateRequest = DataType.StepsType.TOTAL.requestBuilder
    .setLocalTimeFilterWithGroup(localTimeFilter, localTimeGroup)
    .setOrdering(Ordering.DESC)
    ... // set some filters or conditions
    .build()

Since

1.0.0

See also

Preferences Submitted

You have successfully updated your cookie preferences.