LocationSensorConfig class

A configuration class of LocationSensor

You can initialize the class by following code.

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

Constructors

LocationSensorConfig()

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
expirationTime int
expirationTime: Long the amount of elapsed time, in seconds, until the location is considered outdated. By default, 300 seconds. (default = 300)
getter/setter pair
geoFences String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
intervalGps int
frequencyGps: Int how frequent to check the GPS location, in seconds. By default, every 180 seconds. Setting to 0 (zero) will keep the GPS location tracking always on. (default = 180)
getter/setter pair
intervalNetwork int
frequencyNetwork: Int how frequently to check the network location, in seconds. By default, every 300 seconds. Setting to 0 (zero) will keep the network location tracking always on. (default = 300)
getter/setter pair
label String
The label for the sensor data (default = "")
getter/setter pairinherited
minGpsAccuracy int
minGpsAccuracy: Int the minimum acceptable accuracy of GPS location, in meters. By default, 150 meters. Setting to 0 (zero) will keep the GPS location tracking always on. (default = 150)
getter/setter pair
minNetworkAccuracy int
minNetworkAccuracy: Int the minimum acceptable accuracy of network location, in meters. By default, 1500 meters. Setting to 0 (zero) will keep the network location tracking always on. (default = 1500)
getter/setter pair
regions List<Region>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
saveAll bool
saveAll: Boolean Whether to save all the location updates or not. (default = false)
getter/setter pair
statusGps bool
statusGps: Boolean true or false to activate or deactivate GPS Location. (default = true)
getter/setter pair
statusLocationVisit bool
statusLocationVisit: (only iOS)
getter/setter pair
statusNetwork bool
statusNetwork: Boolean true or false to activate or deactivate Network Location. (default = true)
getter/setter pair
statusPassive bool
statusPassive: Boolean true or false to activate or deactivate passive Location. (default = true)
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