Apple health medication sync
Generated reference for ovok_flutter: apple health medication sync.
- Stable unknown
- Release candidate not available
- Development since 0.2.0-dev.51+80996d9
AppleHealthMedicationSyncCompleted
final class AppleHealthMedicationSyncCompleted extends AppleHealthMedicationSyncResultThe medication list and the available dose events were processed.
Constructors
AppleHealthMedicationSyncCompleted.new
AppleHealthMedicationSyncCompleted({required int medications, required int doseEvents})Creates a completed result.
| Parameter | Type | Kind | Default |
|---|---|---|---|
medications | int | required named | |
doseEvents | int | required named |
Properties
AppleHealthMedicationSyncCompleted.medications
final int medicationsMedications HealthKit returned.
AppleHealthMedicationSyncCompleted.doseEvents
final int doseEventsDose events imported, retracted or deleted.
AppleHealthMedicationSyncResult
sealed class AppleHealthMedicationSyncResultWhat syncAppleHealthMedications did.
Constructors
AppleHealthMedicationSyncResult.new
AppleHealthMedicationSyncResult()AppleHealthMedicationSyncUnsupported
final class AppleHealthMedicationSyncUnsupported extends AppleHealthMedicationSyncResultThis device cannot import medications; nothing was read or deleted.
Constructors
AppleHealthMedicationSyncUnsupported.new
AppleHealthMedicationSyncUnsupported(AppleHealthMedicationUnsupportedReason reason)Creates an unsupported result.
| Parameter | Type | Kind | Default |
|---|---|---|---|
reason | AppleHealthMedicationUnsupportedReason | positional |
Properties
AppleHealthMedicationSyncUnsupported.reason
final AppleHealthMedicationUnsupportedReason reasonWhy the import cannot run.
syncAppleHealthMedications
Future<AppleHealthMedicationSyncResult> syncAppleHealthMedications({required Ovok client, required String patientId, required AppleHealthMedicationSource source})Imports the signed-in patient's Apple Health medications and logged doses.
Mirrors syncAppleHealthMedications of @ovok/native/next. Throws
OvokConfigException when patientId is not the signed-in patient. Reads
medications through source; a denied read or an unsupported device never
deletes imported data.
| Parameter | Type | Kind | Default |
|---|---|---|---|
client | Ovok | required named | |
patientId | String | required named | |
source | AppleHealthMedicationSource | required named |
Last updated on