DataCollector class

Defines a unique data collector.

A data collector provides the raw data collected from a phone or external device. Data from multiple data collectors can be converted or combined and therefore becomes derived data. Each sampling point must have a corresponding data collector.

When a data collector is created, a unique identifier will be generated for it. The identifier consists of the data collector type, device information, package name of the app, and more.

Constructors

DataCollector({String? name, String? dataStreamName, String? dataStreamId, DataType? dataType, String? dataTypeName, DataGenerateType? dataGenerateType, String? deviceId, DeviceInfo? deviceInfo, bool isLocalized = false, String? packageName})
DataCollector.fromMap(Map map)
factory

Properties

dataGenerateType DataGenerateType?
The type of the data collector, such as raw and derived.
getter/setter pair
dataStreamId String?
The unique identifier of the data collector.
getter/setter pair
dataStreamName String?
The name of the data stream.
getter/setter pair
dataType DataType?
The data type.
getter/setter pair
dataTypeName String?
The data type name.
getter/setter pair
deviceId String?
The identifier of the device.
getter/setter pair
deviceInfo DeviceInfo?
The Device information.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
isLocalized bool
Whether the data collector is originated from the local device.
getter/setter pair
name String?
The name of the data collector.
getter/setter pair
packageName String?
The package name of the app.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

getDataGenerateType(int value) DataGenerateType?
getStandardByType(int type) String
Obtains the standard type.

Constants

EXTRA_DATA_SOURCE → const String
Other data collectors.
HEALTH_DATA_QUALITY_BLOOD_GLUCOSE_ISO151972003 → const int
Quality standard for blood pressure monitoring: ISO 15197:2003.
HEALTH_DATA_QUALITY_BLOOD_GLUCOSE_ISO151972013 → const int
Quality standard for blood pressure monitoring: ISO 15197:2013.
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_AAMI → const int
Quality standard for blood pressure monitoring: AAMI.
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_BHS_A_A → const int
Quality standard for blood pressure monitoring: BHS (A/A).
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_BHS_A_B → const int
Quality standard for blood pressure monitoring: BHS (A/B).
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_BHS_B_A → const int
Quality standard for blood pressure monitoring: BHS (B/A).
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_BHS_B_B → const int
Quality standard for blood pressure monitoring: BHS (B/B).
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_ESH2002 → const int
Quality standard for blood pressure monitoring: ESH (2002).
HEALTH_DATA_QUALITY_BLOOD_PRESSURE_ESH2010 → const int
Quality standard for blood pressure monitoring: ESH (2010).