AwareSensorConfig class

A default sensor configuration

You can make a configuration class for a subclass of AwareSensor. NOTE: Please don't forget overwrite -toMap() method. This method is called when AwareSensor send the configuration instance as a Map object.

You can initialize the instance as following: Example 1 var config = AwareSensorConfig(debug:true, label:"sample");

Example 2 var config = AwareSenorConfig(); ..debug = true ..label = "sample";

Constructors

AwareSensorConfig({bool debug = false, bool enabled = false, String label = "", String? deviceId, String? dbEncryptionKey, DatabaseType dbType = DatabaseType.DEFAULT, String dbPath = "aware", String? dbHost})

Properties

dbEncryptionKey String?
The database encryption key (default = null)
getter/setter pair
dbHost String?
The remote database host name (default = null)
getter/setter pair
dbPath String
The local database path (default = "aware")
getter/setter pair
dbType DatabaseType
The database type on Android (default = DatabaseTypeAndroid.ROOM)
getter/setter pair
debug bool
The status of debug mode (default = false)
getter/setter pair
deviceId String?
The deviceId of the sensor (default = null).
getter/setter pair
enabled bool
The status of sensor enabled of not (default = false)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
label String
The label for the sensor data (default = "")
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>
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.
toString() String
A string representation of this object.
inherited

Operators

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