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
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
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

Methods

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

Operators

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