Sensors class

Constructors

Sensors()

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Constants

ACCELEROMETER → const int
Accelerometer sensor. Sensor that measures the acceleration applied to the device, including the force of gravity. This sensor returns a 3 axis (x, y & z) list of values. Consider that the values in Android are (m/s^2) meanwhile iOS uses G's (Gravitational force).
GYROSCOPE → const int
Gyroscope sensor. Measures the rotation rate of the device. This sensor returns a 3 axis (x, y & z) list of values. Both Android and iOS returns this values in radians/second.
LINEAR_ACCELERATION → const int
Linear accelerometer. The linear acceleration is the acceleration of the device minus the gravity. This sensor returns a 3 axis (x, y & z) list of values. Consider that the values in Android are (m/s^2) meanwhile iOS uses G's (Gravitational force).
MAGNETIC_FIELD → const int
Geomagnetic field sensor. Monitors changes in the earth's magnetic field. This sensor returns a 3 axis (x, y & z) list of values. Both Android and iOS returns this values in μT (microtesla).
ROTATION → const int
Rotation sensor. Represent the orientation of the device. Android: Returns a list of 3 values for each axis (x, y & z). The rotation matrix an azimuth must be computed manually given that this sensor only gives the raw values. iOS: Returns a list but with only one value (index 0) with the azimuth computed by the system.
SENSOR_DELAY_FASTEST → const Duration
Gets sensor data as fast as possible.
SENSOR_DELAY_GAME → const Duration
Delay of 20000 microseconds between readings. Rate suitable for games.
SENSOR_DELAY_NORMAL → const Duration
Delay of 200000 microseconds between readings. Rate suitable for screen orientation changes.
SENSOR_DELAY_UI → const Duration
Delay of 60000 microseconds between readings. Rate suitable for UI related work.
SENSOR_STATUS_ACCURACY_HIGH → const int
This sensor is reporting data with maximum accuracy.
SENSOR_STATUS_ACCURACY_LOW → const int
This sensor is reporting data with low accuracy, calibration with the environment is needed.
SENSOR_STATUS_ACCURACY_MEDIUM → const int
This sensor is reporting data with an average level of accuracy, calibration with the environment may improve the readings.
STEP_DETECTOR → const int
Step detector sensor. Triggers an event each time the user takes a step. In iOS this plugin returns the step event and not the count of steps.