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({required DateTime timestamp, required int packetIndex, List<int>? accel, List<int>? gyro})
SensorEvent.empty()
factory
SensorEvent.fromMap(Map map)
factory

Properties

accel List<int>?
3-elements array with X, Y and Z axis for accelerometer
getter/setter pair
gyro List<int>?
3-elements array with X, Y and Z axis for gyroscope
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
packetIndex int
Sequential number of sensor packet
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
Phone timestamp
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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