SensorsPlatform class abstract

The common platform interface for sensors.

Inheritance
  • Object
  • PlatformInterface
  • SensorsPlatform

Constructors

SensorsPlatform()
Constructs a SensorsPlatform.

Properties

accelerometerEvents Stream<AccelerometerEvent>
A broadcast stream of events from the device accelerometer.
no setter
gyroscopeEvents Stream<GyroscopeEvent>
A broadcast stream of events from the device gyroscope.
no setter
hashCode int
The hash code for this object.
no setterinherited
magnetometerEvents Stream<MagnetometerEvent>
A broadcast stream of events from the device magnetometer.
no setter
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 setter

Methods

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

Operators

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

Static Properties

instance SensorsPlatform
The default instance of SensorsPlatform to use.
getter/setter pair