WritableSample<Harmonized extends Payload?> class abstract

Equivalent of WritableSample from HealthConnectReporter https://github.com/kvs-coder/HealthConnectReporter

A sample type apps may insert, update and delete; every Health Connect record is writable.

Inheritance
Implementers

Constructors

WritableSample({required int startTimestamp, required Harmonized harmonized, String? id, String? clientRecordId, int? clientRecordVersion, int? startZoneOffsetSeconds, int? endZoneOffsetSeconds, RecordingMethod? recordingMethod, Device? device, DataOrigin? dataOrigin, int? lastModifiedTimestamp})
const
WritableSample.from(Map<String, dynamic> json, Harmonized harmonized)
General constructor from JSON payload

Properties

clientRecordId → String?
Your own id for the record, kept by Health Connect; inserting it again updates the record
finalinherited
clientRecordVersion → int?
Your own version of clientRecordId; Health Connect keeps the highest
finalinherited
dataOrigin → DataOrigin?
The app that wrote the record; set by Health Connect
finalinherited
device → Device?
The device that recorded the data
finalinherited
endTimestamp → int?
End time, epoch milliseconds; null for instantaneous records
no setterinherited
endZoneOffsetSeconds → int?
Zone offset at endTimestamp in seconds; null means unknown
finalinherited
harmonized → Harmonized
The measured values; null for records without values
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
healthType → HealthType
The data type of this sample
no setterinherited
id → String?
Health Connect id of the stored record; null until it is inserted
finalinherited
lastModifiedTimestamp → int?
Last modification time, epoch milliseconds; set by Health Connect
finalinherited
map → Map<String, dynamic>
General map representation, with the type discriminator
no setterinherited
recordingMethod → RecordingMethod?
How the record was recorded; RecordingMethod.manualEntry when written as null
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startTimestamp → int
Start time (the measurement time of an instantaneous record), epoch milliseconds
finalinherited
startZoneOffsetSeconds → int?
Zone offset at startTimestamp in seconds; null means unknown
finalinherited

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