Skip to main content

Module haptics

Module haptics 

Source
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§

HapticFeedback
A haptic feedback event.

Traits§

Haptics
Performs haptic feedback. Installed by the platform backend; the default is a no-op.

Functions§

ProvideHaptics
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.

Type Aliases§

HapticsRef