Sensors class
The Sensors implementation.
- Inheritance
-
- Object
- PlatformInterface
- SensorsPlatform
- Sensors
Properties
-
accelerometerEvents
→ Stream<
AccelerometerEvent> -
A broadcast stream of events from the device accelerometer.
no setteroverride
-
gyroscopeEvents
→ Stream<
GyroscopeEvent> -
A broadcast stream of events from the device gyroscope.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
magnetometerEvents
→ Stream<
MagnetometerEvent> -
A broadcast stream of events from the device magnetometer.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userAccelerometerEvents
→ Stream<
UserAccelerometerEvent> -
Events from the device accelerometer with gravity removed.
no setteroverride
Methods
-
accelerometerEventStream(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< AccelerometerEvent> -
Returns a broadcast stream of events from the device accelerometer at the
given sampling frequency.
inherited
-
gyroscopeEventStream(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< GyroscopeEvent> -
Returns a broadcast stream of events from the device gyroscope at the
given sampling frequency.
inherited
-
magnetometerEventStream(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< MagnetometerEvent> -
Returns a broadcast stream of events from the device magnetometer at the
given sampling frequency.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
userAccelerometerEventStream(
{Duration samplingPeriod = SensorInterval.normalInterval}) → Stream< UserAccelerometerEvent> -
Returns a broadcast stream of events from the device accelerometer with
gravity removed at the given sampling frequency.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited