SensorEvent class

Contains data from a sensor event.

In the eSense Android API, this event is called an ESenseEvent. But this is confusing, since these event arise from a ESenseSensorListener. Hence, in Flutter we have chosen to call these sensor events for SensorEvent.

Constructors

SensorEvent({DateTime timestamp, int packetIndex, List<int> accel, List<int> gyro})
SensorEvent.fromMap(Map map)
factory

Properties

accel List<int>
3-elements array with X, Y and Z axis for accelerometer
read / write
gyro List<int>
3-elements array with X, Y and Z axis for gyroscope
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
packetIndex int
Sequential number of sensor packet [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timestamp DateTime
Phone timestamp
read / write

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

Operators

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