NativeHapticsPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- NativeHapticsPlatform
- Implementers
Constructors
- NativeHapticsPlatform()
- Constructs a NativeHapticsPlatform.
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
-
bounce(
) → Future< void> - Triggers a bounce haptic effect using thuds (Android only).
-
bounceOnce(
) → Future< void> - Triggers a bounce haptic effect once using thuds (Android only).
-
error(
) → Future< void> -
expand(
) → Future< void> - Triggers an expand haptic effect (rise and fall) (Android only).
-
getPlatformVersion(
) → Future< String?> -
heavyImpact(
) → Future< void> -
lightImpact(
) → Future< void> -
mediumImpact(
) → Future< void> -
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).
-
repeatingPattern(
) → Future< void> - Triggers a repeating haptic pattern (Android only).
-
resist(
) → Future< void> - Triggers a resist haptic effect using low ticks (Android only).
-
rocketLaunch(
) → Future< void> - Triggers a rocket launch haptic effect using waveform envelope (Android only, API 36+).
-
selectionClick(
) → Future< void> -
spring(
) → Future< void> - Triggers a spring haptic effect using envelope (Android only, API 36+).
-
success(
) → Future< void> -
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).
-
vibrateWithAmplitude(
{required int duration, required int amplitude}) → Future< void> - Vibrate with a specific amplitude for a given duration (Android only).
-
warning(
) → Future< void> -
wobble(
) → Future< void> - Triggers a wobble haptic effect using spins (Android only).
-
wobbleOnce(
) → Future< void> - Triggers a wobble haptic effect once using spins (Android only).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ NativeHapticsPlatform
-
The default instance of NativeHapticsPlatform to use.
getter/setter pair