Expand description
Haptic feedback — the framework analogue of Jetpack’s LocalHapticFeedback.
The compiled-in default is a no-op; platform backends install a real
implementation through set_platform_haptics (iOS UIFeedbackGenerator,
Android Vibrator). Desktop and the web have no haptics and drop it.
Enums§
- Haptic
Feedback - A haptic feedback event.
Traits§
- Haptics
- Performs haptic feedback. Installed by the platform backend; the default is a no-op.
Functions§
- Provide
Haptics - clear_
platform_ haptics - Removes any registered platform haptics (tests and teardown).
- default_
haptics - local_
haptics - set_
platform_ haptics - Installs a platform haptics implementation, replacing any previous one.