SensorEvent class

Represents a Sensor event and holds information such as the sensor's type, the time-stamp, accuracy and of course the sensor's data.

See: https://developer.android.com/reference/android/hardware/SensorEvent

Constructors

SensorEvent({int accuracy, Sensor sensor, int timestamp, List<double> values })
const

Properties

accuracy → int
The accuracy of this event. [...]
final
sensor Sensor
The sensor that generated this event. [...]
final
timestamp → int
The time in nanoseconds at which the event happened. [...]
final
values → List<double>
The length and contents of the values array depends on which sensor type is being monitored. [...]
final
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited