Added in API level 34

AggregateRecordsRequest


class AggregateRecordsRequest<T : Any!>
kotlin.Any
   ↳ android.health.connect.AggregateRecordsRequest

A class to create requests for HealthConnectManager#aggregate

Summary

Nested classes

Public methods
MutableSet<AggregationType<T>!>

MutableSet<DataOrigin!>

TimeRangeFilter

Public methods

getAggregationTypes

Added in API level 34
fun getAggregationTypes(): MutableSet<AggregationType<T>!>
Return
MutableSet<AggregationType<T>!> Set of integers from AggregationType to aggregate This value cannot be null.

getDataOriginsFilters

Added in API level 34
fun getDataOriginsFilters(): MutableSet<DataOrigin!>
Return
MutableSet<DataOrigin!> Set of DataOrigins to read from, or empty set for no filter This value cannot be null.

getTimeRangeFilter

Added in API level 34
fun getTimeRangeFilter(): TimeRangeFilter
Return
TimeRangeFilter time range b/w which the aggregate operation is to be performed This value cannot be null.