Device Vibrate example

               
by

Published Jan 5, 2022 at 11:41
Open In Editor


this example will vibrate your device if the command is supported in your device's browser. check support on this page: https://caniuse.com/?search=Navigator%20API%3A%20vibrate

for the command to work, you must also focus the window - by having the user interact with the canvas - for example: touch pressing the page.

Do Not Disturb mode can also affect the functionality of this operator on your device, preventing the vibration command when DNB is on.


Example for ops:
Ops.Devices.Mobile.DeviceVibrate 

Licence: Public Domain Dedication

Commercial use ok, freely remix, reuse this work without restriction, please credit the author.
 



More patches made by cables users





what is cables?


Cables is a tool for creating beautiful interactive content. With an easy to navigate interface and real time visuals, it allows for rapid prototyping and fast adjustments.

cables is free to use!

Register