HapticPatternsPlatform class abstract

The interface platform-specific implementations of haptic_patterns must implement.

This is the contract HapticPlayer talks to -- it doesn't know or care whether it's backed by a method channel, a mock in tests, or (for third-party platforms) something else entirely.

Inheritance
  • Object
  • PlatformInterface
  • HapticPatternsPlatform
Implementers

Constructors

HapticPatternsPlatform()
Constructs a HapticPatternsPlatform.

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

isSupported() Future<bool>
Whether the current device supports haptic feedback at all.
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.
stop() Future<void>
Stops any haptic feedback currently playing.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

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