aggregate

suspend fun <T : Any, S : AggregateRequest.Builder<T>> HealthDataStore.aggregate(aggregateOperation: AggregateOperation<T, S>, builder: suspend S.() -> S? = null): DataResponse<AggregatedData<T>>

Aggregates a set of data in the Samsung Health app with simplified code. It enables you to request an aggregate operation for a specific data type with building an AggregateRequest easily. To aggregate data asynchronously, use HealthDataStore.aggregateDataAsync.

Return

The DataResponse instance that includes an AggregatedData list.

Since

1.0.0

Parameters

builder

A lambda function to build the AggregateRequest according to the data type.

Preferences Submitted

You have successfully updated your cookie preferences.