HealthConnectBackfillResult class

Outcome of a Health Connect historical pull.

Constructors

HealthConnectBackfillResult({required int requestedDaysBack, required int daysIngested, required int dimensionsPushed, required bool skipped, required String? skipReason, required int durationMs})
const

Properties

daysIngested → int
Distinct days that produced at least one push (i.e. days where either sleep or overnight HR/HRV came back from the read). Always 0 on iOS / when no permissions / when no data found.
final
dimensionsPushed → int
Total srmPushWearableDaily calls fired across all days. Each day can contribute up to 5 (resting_hr, hrv_rmssd, sleep_need, deep_sleep_min, rem_sleep_min) depending on what the platform returned.
final
durationMs → int
Wall-clock time the read + replay took. Health Connect can be slow (10s+ for a year of HR samples on cold cache) — surface this so callers can decide between blocking UI vs. background.
final
hashCode → int
The hash code for this object.
no setterinherited
requestedDaysBack → int
Days of history we asked the platform for.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
skipped → bool
True when the call short-circuited (wrong platform, no permissions, no SDK available). skipReason explains why.
final
skipReason → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited