MotionSensors class

Constructors

MotionSensors()

Properties

absoluteOrientation Stream<AbsoluteOrientationEvent>
The current absolute orientation of the device.
no setter
absoluteOrientationUpdateInterval int
The update interval of absolute orientation. The units are in microseconds.
no getter
accelerometer Stream<AccelerometerEvent>
A broadcast stream of events from the device accelerometer.
no setter
accelerometerUpdateInterval int
The update interval of accelerometer. The units are in microseconds.
no getter
gyroscope Stream<GyroscopeEvent>
A broadcast stream of events from the device gyroscope.
no setter
gyroscopeUpdateInterval int
The update interval of Gyroscope. The units are in microseconds.
no getter
hashCode int
The hash code for this object.
no setterinherited
magnetometer Stream<MagnetometerEvent>
A broadcast stream of events from the device magnetometer.
no setter
magnetometerUpdateInterval int
The update interval of magnetometer. The units are in microseconds.
no getter
orientation Stream<OrientationEvent>
The current orientation of the device.
no setter
orientationUpdateInterval int
The update interval of orientation. The units are in microseconds.
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenOrientation Stream<ScreenOrientationEvent>
The rotation of the screen from its "natural" orientation.
no setter
userAccelerometer Stream<UserAccelerometerEvent>
Events from the device accelerometer with gravity removed.
no setter
userAccelerometerUpdateInterval int
The update interval of user accelerometer. The units are in microseconds.
no getter

Methods

getOrientation(Matrix4 m) → Vector3
getRotationMatrix(Vector3 gravity, Vector3 geomagnetic) Matrix4
isAbsoluteOrientationAvailable() Future<bool>
Determines whether absolute orientation is available.
isAccelerometerAvailable() Future<bool>
Determines whether accelerometer is available.
isGyroscopeAvailable() Future<bool>
Determines whether gyroscope is available.
isMagnetometerAvailable() Future<bool>
Determines whether magnetometer is available.
isOrientationAvailable() Future<bool>
Determines whether orientation is available.
isSensorAvailable(int sensorType) Future<bool>
Determines whether sensor is available.
isUserAccelerationAvailable() Future<bool>
Determines whether user accelerometer is available.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSensorUpdateInterval(int sensorType, int interval) Future
Change the update interval of sensor. The units are in microseconds.
toString() String
A string representation of this object.
inherited

Operators

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