HapticsPlugin.vibrate()
PluginHapticsPluginvibrateLess than 1 minute
Custom vibration feedback effect.
HapticsPlugin.vibrate(options)
Parameters
- options: Options parameter with value VibrateOptions object.
Returns
A Promise.
Example
import { hapticsPlugin } from "@plaoc/plugins";
hapticsPlugin.vibrate({duration: [1000, 100]});
Platform Compatibility
Property/Method/Event | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
vibrate | ✅ | ✅ | ✅ | X |
See Also
Powered by Waline v2.15.7