MethodChannelNativeHaptics class

An implementation of NativeHapticsPlatform that uses method channels.

Inheritance

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

bounce() Future<void>
Triggers a bounce haptic effect using thuds (Android only).
override
bounceOnce() Future<void>
Triggers a bounce haptic effect once using thuds (Android only).
override
error() Future<void>
override
expand() Future<void>
Triggers an expand haptic effect (rise and fall) (Android only).
override
getPlatformVersion() Future<String?>
override
heavyImpact() Future<void>
override
lightImpact() Future<void>
override
mediumImpact() Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rampUpPattern() Future<void>
Triggers a ramp-up haptic pattern (Android only).
override
repeatingPattern() Future<void>
Triggers a repeating haptic pattern (Android only).
override
resist() Future<void>
Triggers a resist haptic effect using low ticks (Android only).
override
rocketLaunch() Future<void>
Triggers a rocket launch haptic effect using waveform envelope (Android only, API 36+).
override
selectionClick() Future<void>
override
spring() Future<void>
Triggers a spring haptic effect using envelope (Android only, API 36+).
override
success() Future<void>
override
toString() String
A string representation of this object.
inherited
vibratePattern({required List<int> pattern, List<int>? amplitudes, bool repeat = false}) Future<void>
Vibrate with a custom pattern (Android only).
override
vibrateWithAmplitude({required int duration, required int amplitude}) Future<void>
Vibrate with a specific amplitude for a given duration (Android only).
override
warning() Future<void>
override
wobble() Future<void>
Triggers a wobble haptic effect using spins (Android only).
override
wobbleOnce() Future<void>
Triggers a wobble haptic effect once using spins (Android only).
override

Operators

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