MotionPlatform class abstract
The common platform interface for the Motion plugin.
- Inheritance
-
- Object
- PlatformInterface
- MotionPlatform
Constructors
- MotionPlatform()
- Constructs a MotionPlatform.
Properties
-
gyroscopeStream
→ Stream<
MotionEvent> ? -
The gyroscope stream, if available.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isGradientOverlayAvailable → bool
-
Indicates whether the gradient is available.
no setter
- isGyroscopeAvailable → bool
-
Indicates whether the gyroscope is available.
no setter
- isPermissionGranted → bool
-
Indicates whether the permission is granted.
no setter
- isPermissionRequired → bool
-
Indicates whether a permission is required to access gyroscope data.
no setter
- isSafariMobile → bool
-
Platform features declaration
Detects if the platform is Safari Mobile (iOS or iPad).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateInterval → FramesPerSecond
-
The interval at which the gyroscope stream is updated.
no setter
Methods
-
initialize(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission(
) → Future< bool> -
setUpdateInterval(
FramesPerSecond updateInterval) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MotionPlatform
-
The default instance of MotionPlatform to use.
getter/setter pair