MethodChannelHapticPatterns class
An implementation of HapticPatternsPlatform that uses method channels to talk to the native Android/iOS haptic engines.
The native side of these calls (Kotlin/Swift) isn't implemented yet -- this wires up the Dart-side contract so the API is usable and testable ahead of the platform implementations landing.
- Inheritance
-
- Object
- PlatformInterface
- HapticPatternsPlatform
- MethodChannelHapticPatterns
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isSupported(
) → Future< bool> -
Whether the current device supports haptic feedback at all.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
playInstructions(
List< HapticInstruction> instructions) → Future<void> -
Plays a flattened list of HapticInstructions in order.
override
-
stop(
) → Future< void> -
Stops any haptic feedback currently playing.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited