DataSource class
Definition of a unique source of sensor data.
Data sources can expose raw data coming from hardware sensors on local or companion devices. They can also expose derived data, created by transforming or merging other data sources. Multiple data sources can exist for the same data type. Every data point inserted into or read from this service has an associated data source. The data source contains enough information to uniquely identify its data, including the hardware device and the application that collected and/or transformed the data. It also holds useful metadata, such as the hardware and application versions, and the device type. Each data source produces a unique stream of data, with a unique identifier. Not all changes to data source affect the stream identifier, so that data collected by updated versions of the same application/device can still be considered to belong to the same data stream.
Constructors
-
DataSource({Application? application, List<
String> ? dataQualityStandard, String? dataStreamId, String? dataStreamName, DataType? dataType, Device? device, String? name, String? type}) - DataSource.fromJson(Map json_)
Properties
- application ↔ Application?
-
Information about an application which feeds sensor data into the
platform.
getter/setter pair
-
dataQualityStandard
↔ List<
String> ? -
DO NOT POPULATE THIS FIELD.
getter/setter pair
- dataStreamId ↔ String?
-
A unique identifier for the data stream produced by this data source.
getter/setter pair
- dataStreamName ↔ String?
-
The stream name uniquely identifies this particular data source among
other data sources of the same type from the same underlying producer.
getter/setter pair
- dataType ↔ DataType?
-
The data type defines the schema for a stream of data being collected by,
inserted into, or queried from the Fitness API.
getter/setter pair
- device ↔ Device?
-
Representation of an integrated device (such as a phone or a wearable)
that can hold sensors.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- name ↔ String?
-
An end-user visible name for this data source.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String?
-
A constant describing the type of this data source.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited