AccelerometerSensorConfig class

A configuration class of AccelerometerSensor

You can initialize the class by following code.

var config =  AccelerometerSensorConfig();
config
  ..debug = true
  ..frequency = 100;
Inheritance
  • Object
  • AwareSensorConfig
  • AccelerometerSensorConfig

Constructors

AccelerometerSensorConfig()

Properties

dbEncryptionKey String?
The database encryption key (default = null)
getter/setter pairinherited
dbHost String?
The remote database host name (default = null)
getter/setter pairinherited
dbPath String
The local database path (default = "aware")
getter/setter pairinherited
dbType ↔ DatabaseType
The database type on Android (default = DatabaseTypeAndroid.ROOM)
getter/setter pairinherited
debug bool
The status of debug mode (default = false)
getter/setter pairinherited
deviceId String?
The deviceId of the sensor (default = null).
getter/setter pairinherited
enabled bool
The status of sensor enabled of not (default = false)
getter/setter pairinherited
frequency int
Data samples to collect per second (Hz). (default = 5)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
label String
The label for the sensor data (default = "")
getter/setter pairinherited
period double
Period to save data in minutes. (default = 1.0)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threshold double
If set, do not record consecutive points if change in value is less than the set value.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Generate a Map<String,dynamic> object for sensing the configuration via MethodChannel. Sending the configuration object through the MethodChannel, we have to use a Map object.
override
toString() String
A string representation of this object.
inherited

Operators

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