AggregateRecordsRequest


public final class AggregateRecordsRequest
extends Object

java.lang.Object
   ↳ android.health.connect.AggregateRecordsRequest<T>


A class to create requests for HealthConnectManager#aggregate

Summary

Nested classes

class AggregateRecordsRequest.Builder<T>

 

Public methods

Set<AggregationType<T>> getAggregationTypes()
Set<DataOrigin> getDataOriginsFilters()
TimeRangeFilter getTimeRangeFilter()

Inherited methods

Public methods

getAggregationTypes

Added in API level 34
public Set<AggregationType<T>> getAggregationTypes ()

Returns
Set<AggregationType<T>> Set of integers from AggregationType to aggregate This value cannot be null.

getDataOriginsFilters

Added in API level 34
public Set<DataOrigin> getDataOriginsFilters ()

Returns
Set<DataOrigin> Set of DataOrigins to read from, or empty set for no filter This value cannot be null.

getTimeRangeFilter

Added in API level 34
public TimeRangeFilter getTimeRangeFilter ()

Returns
TimeRangeFilter time range b/w which the aggregate operation is to be performed This value cannot be null.