Added in API level 34

android.health.connect


Interfaces

TimeRangeFilter A Base class to represent a request for time range for read and delete requests. 

Classes

AggregateRecordsGroupedByDurationResponse<T> Class to represent the response from HealthConnectManager#aggregateGroupByDuration 
AggregateRecordsGroupedByPeriodResponse<T> Class to represent the response from HealthConnectManager#aggregateGroupByPeriod 
AggregateRecordsRequest<T> A class to create requests for HealthConnectManager#aggregate 
AggregateRecordsRequest.Builder<T>  
AggregateRecordsResponse<T> A class representing response for HealthConnectManager#aggregate 
HealthConnectManager This class provides APIs to interact with the centralized HealthConnect storage maintained by the system. 
HealthPermissions Permissions for accessing the HealthConnect APIs. 
InsertRecordsResponse Response for HealthConnectManager#insertRecords
LocalTimeRangeFilter Specification of local time range for health connect requests. 
LocalTimeRangeFilter.Builder Builder class for LocalTimeRangeFilter 
ReadRecordsRequest<T extends Record> A Base class to represent a request for HealthConnectManager.readRecords(android.health.connect.ReadRecordsRequest, java.util.concurrent.Executor, android.os.OutcomeReceiver) 
ReadRecordsRequestUsingFilters<T extends Record> Class to represent a request based on time range and data origin filters for HealthConnectManager.readRecords(android.health.connect.ReadRecordsRequest, java.util.concurrent.Executor, android.os.OutcomeReceiver) 
ReadRecordsRequestUsingFilters.Builder<T extends Record> Builder class for ReadRecordsRequestUsingFilters 
ReadRecordsRequestUsingIds<T extends Record> A request class to represent request based on RecordIdFilters for HealthConnectManager.readRecords(android.health.connect.ReadRecordsRequest, java.util.concurrent.Executor, android.os.OutcomeReceiver)

A RecordIdFilter can be constructed with either record ID or client record ID

ReadRecordsRequestUsingIds.Builder<T extends Record> Builder class for ReadRecordsRequestUsingIds 
ReadRecordsResponse<T extends Record> Response containing list of Records for HealthConnectManager#readRecords
RecordIdFilter A class to represent filtering based on record ID or client ID. 
TimeInstantRangeFilter Specification of time range for read and delete requests. 
TimeInstantRangeFilter.Builder Builder class for TimeInstantRangeFilter 

Exceptions

HealthConnectException Class representing health connect exceptions.