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
packetIndex ↔ int
Sequential number of sensor packet [...]
read / write
timestamp ↔ DateTime
Phone timestamp
read / write
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

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

Operators

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