HapticsPlugin
PluginHapticsPluginLess than 1 minute
HapticsPlugin provides physical feedback through vibrations to the user.
On Desktop-dev it provides visual feedback through messages.
import { hapticsPlugin } from "@plaoc/plugins";
Properties
isIOSDWebBrowser
Static property.
Checks if environment is iOS browser.
Boolean value.
Methods
Simulates a light impact.
Notification vibration effect.
Click effect.
HapticsPlugin.vibrateDisabled()
Disabled gesture feedback.
HapticsPlugin.vibrateDoubleClick()
Double click effect.
HapticsPlugin.vibrateHeavyClick()
Heavy click gesture effect.
Tick effect.
Custom vibration effect.
Events
- None
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
impactLight | ✅ | ✅ | ✅ | X |
notification | ✅ | ✅ | ✅ | X |
vibrateClick | ✅ | ✅ | ✅ | X |
vibrateDisabled | ✅ | ✅ | ✅ | X |
vibrateDoubleClick | ✅ | ✅ | ✅ | X |
vibrateHeavyClick | ✅ | ✅ | ✅ | X |
vibrateTick | ✅ | ✅ | ✅ | X |
vibrate | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.15.7