Android Studio Sign in

AggregateRecordsResponse


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

A class representing response for HealthConnectManager.aggregate

Summary

Public methods
T?
get(aggregationType: AggregationType<T>)

MutableSet<DataOrigin!>
getDataOrigins(aggregationType: AggregationType<T>)

Returns a set of DataOrigins for the underlying aggregation record, empty set if the corresponding aggregation doesn't exist and or if multiple records were present.

ZoneOffset?
getZoneOffset(aggregationType: AggregationType<T>)

Public methods

get

fun get(aggregationType: AggregationType<T>): T?
Parameters
aggregationType AggregationType<T>: AggregationType for which to get the result.
This value cannot be null.
Return
T? an aggregation result for aggregationType. *.
This value may be null.

getDataOrigins

fun getDataOrigins(aggregationType: AggregationType<T>): MutableSet<DataOrigin!>

Returns a set of DataOrigins for the underlying aggregation record, empty set if the corresponding aggregation doesn't exist and or if multiple records were present.

Parameters
aggregationType AggregationType<T>: This value cannot be null.
Return
MutableSet<DataOrigin!> This value cannot be null.

getZoneOffset

fun getZoneOffset(aggregationType: AggregationType<T>): ZoneOffset?
Parameters
aggregationType AggregationType<T>: This value cannot be null.
Return
ZoneOffset? ZoneOffset for the underlying aggregation record, null if the corresponding aggregation doesn't exist and or if multiple records were present.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.