FlutterVibrationManagerPlatform class abstract
The interface that platform implementations of flutter_vibration_manager must extend.
- Inheritance
-
- Object
- PlatformInterface
- FlutterVibrationManagerPlatform
- Implementers
Constructors
- FlutterVibrationManagerPlatform()
- Constructs a FlutterVibrationManagerPlatform.
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
-
cancel(
) → Future< VibrationResult> - Cancels any ongoing vibration.
-
capabilities(
) → Future< VibrationCapabilities> - Returns detailed capabilities of the device's vibration system.
-
haptic(
HapticType type) → Future< VibrationResult> - Triggers haptic feedback.
-
hasAmplitudeControl(
) → Future< bool> - Checks if amplitude control is supported on this device.
-
hasVibrator(
) → Future< bool> - Checks if the device has a physical vibrator.
-
isSupported(
) → Future< bool> - Checks if vibration is supported on this platform.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notification(
NotificationType type) → Future< VibrationResult> - Triggers notification feedback.
-
toString(
) → String -
A string representation of this object.
inherited
-
vibrate(
{required Duration duration, int? amplitude, required VibrationUsage usage}) → Future< VibrationResult> - Triggers a simple vibration with optional amplitude and usage.
-
waveform(
{required List< Duration> pattern, List<int> ? amplitudes, required int repeat, required VibrationUsage usage}) → Future<VibrationResult> - Triggers a pattern/waveform vibration with optional amplitudes and repeat.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FlutterVibrationManagerPlatform
-
The default instance of FlutterVibrationManagerPlatform to use.
getter/setter pair