You're viewing an older version of this documentation. View the latest version (3.x)
Haptics
Overview#
The Haptics API provides access to the device's vibration and haptic feedback system for tactile user interactions.
Copied!
use Native\Mobile\Facades\Haptics;
Methods#
vibrate()#
Triggers device vibration for tactile feedback.
Returns: void
Copied!
Haptics::vibrate();
Use haptics for: Button presses, form validation, important notifications, game events.
Avoid haptics for: Frequent events, background processes, minor updates.
Plugin Dev Kit
Build native plugins with
Claude Code
Learn More
NativePHP Ultra
All NativePHP plugins, teams & priority support from
$35/mo
Learn More
The Vibes
The unofficial Laracon US
Day 3
Grab Your Spot
Only 100 tickets!
The Masterclass
Go from zero to
published app
in no time
in no time
Learn More
Early Bird Pricing