HTMLDwebHapticsElement
WebComponentHTMLDwebHapticsElementLess than 1 minute
An HTMLElement for haptic vibration feedback;
Inherits from HTMLElement;
<dweb-haptics></dweb-haptics>
Properties
plugin
A HapticsPlugin object;
vibrate
The HapticsPlugin.vibrate() method
impactLight
The HapticsPlugin.impactLight() method
notification
The HapticsPlugin.notification() method
vibrateClick
The HapticsPlugin.vibrateTick() method
vibrateDisabled
The HapticsPlugin.vibrateDisabled() method
vibrateDoubleClick
The HapticsPlugin.vibrateDoubleClick() method
vibrateHeavyClick
The HapticsPlugin.vibrateHeavyClick method
vibrateTick
The HapticsPlugin.vibrateTick() method
Methods
- None
Events
- No predefined events
Example
<body>
<dweb-haptics></dweb-haptics>
<script type="text/javascript">
const dwebHaptics = document.querySelector("dweb-haptics");
dwebHaptics.vibrateDisabled();
</script>
</body>
Cross-Platform Compatibility
Properties/Methods/Events | Android | iOS | Desktop-Dev | Desktop |
---|---|---|---|---|
plugin | ✅ | ✅ | ✅ | X |
vibrate | ✅ | ✅ | ✅ | X |
impactLight | ✅ | ✅ | ✅ | X |
notification | ✅ | ✅ | ✅ | X |
vibrateClick | ✅ | ✅ | ✅ | X |
vibrateDisabled | ✅ | ✅ | ✅ | X |
vibrateDoubleClick | ✅ | ✅ | ✅ | X |
vibrateHeavyClick | ✅ | ✅ | ✅ | X |
vibrateTick | ✅ | ✅ | ✅ | X |
Related Links
Powered by Waline v2.15.7