Platform client interface for interacting with native health platforms.
This interface defines the contract for platform-specific implementations that communicate with health platforms to read, write, and manage health data.
- Annotations
Properties
- config → HealthConnectorConfig
-
The configuration used by this client.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
aggregate<
U extends MeasurementUnit> (AggregateRequest< U> request) → Future<U> - Performs an aggregation query over health records.
-
deleteRecords(
DeleteRecordsRequest request) → Future< void> - Deletes health records based on the provided request.
-
getPermissionStatus(
Permission permission) → Future< PermissionStatus> - Gets the current permission status for a specific permission.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readExerciseRoute(
HealthRecordId exerciseSessionId) → Future< ExerciseRoute?> - Reads the exercise route for a given exercise session.
-
readRecord<
R extends HealthRecord> (ReadRecordByIdRequest< R> request) → Future<R?> - Reads a single health record by ID.
-
readRecords<
R extends HealthRecord> (ReadRecordsInTimeRangeRequest< R> request) → Future<ReadRecordsInTimeRangeResponse< R> > - Reads multiple health records within a time range.
-
requestPermissions(
List< Permission> permissions) → Future<List< PermissionRequestResult> > - Requests permissions from the native platform.
-
synchronize(
{required List< HealthDataType< dataTypes, required HealthDataSyncToken? syncToken}) → Future<HealthRecord, MeasurementUnit> >HealthDataSyncResult> - Synchronizes health data from the health platform using incremental change tracking.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRecord<
R extends HealthRecord> (R record) → Future< void> - Updates a single health record on the platform.
-
updateRecords<
R extends HealthRecord> (List< R> records) → Future<void> - Updates multiple health records on the platform.
-
writeRecord<
R extends HealthRecord> (R record) → Future< HealthRecordId> - Writes a single health record to the platform.
-
writeRecords<
R extends HealthRecord> (List< R> records) → Future<List< HealthRecordId> > - Writes multiple health records atomically.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited