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 
CreateMedicalDataSourceRequest A create request for HealthConnectManager.createMedicalDataSource
CreateMedicalDataSourceRequest.Builder Builder class for CreateMedicalDataSourceRequest
DeleteMedicalResourcesRequest A delete request for HealthConnectManager.deleteMedicalResources
DeleteMedicalResourcesRequest.Builder Builder class for DeleteMedicalResourcesRequest
GetMedicalDataSourcesRequest A create request for HealthConnectManager.getMedicalDataSources
GetMedicalDataSourcesRequest.Builder Builder class for GetMedicalDataSourcesRequest
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 
MedicalResourceId A class to represent a unique identifier of a medical resource. 
ReadMedicalResourcesInitialRequest An initial read request with specified filters for HealthConnectManager.readMedicalResources(ReadMedicalResourcesRequest, Executor, OutcomeReceiver)
ReadMedicalResourcesInitialRequest.Builder Builder class for ReadMedicalResourcesInitialRequest
ReadMedicalResourcesPageRequest A page read request with specified pageToken for HealthConnectManager.readMedicalResources(ReadMedicalResourcesRequest, Executor, OutcomeReceiver)
ReadMedicalResourcesPageRequest.Builder Builder class for ReadMedicalResourcesPageRequest
ReadMedicalResourcesRequest A base class to represent a read request for HealthConnectManager.readMedicalResources
ReadMedicalResourcesResponse A read response for HealthConnectManager.readMedicalResources
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 
UpsertMedicalResourceRequest An upsert request for HealthConnectManager.upsertMedicalResources
UpsertMedicalResourceRequest.Builder Builder class for UpsertMedicalResourceRequest

Exceptions

HealthConnectException Class representing health connect exceptions.