ThreeJsSensors class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
absoluteOrientation(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< AbsoluteOrientationEvent> - The current absolute orientation of the device.
-
accelerometer(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< AccelerometerEvent> - A broadcast stream of events from the device accelerometer.
-
gyroscope(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< GyroscopeEvent> - A broadcast stream of events from the device gyroscope.
-
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(
SensorType sensorType) → Future< bool> - Determines whether sensor is available.
-
isUserAccelerationAvailable(
) → Future< bool> - Determines whether user accelerometer is available.
-
magnetometer(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< MagnetometerEvent> - A broadcast stream of events from the device magnetometer.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
screenOrientation(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< ScreenOrientationEvent> - The rotation of the screen from its "natural" orientation.
-
toString(
) → String -
A string representation of this object.
inherited
-
userAccelerometer(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< UserAccelerometerEvent> - Events from the device accelerometer with gravity removed.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited