Monday, 29 July 2019

Get user-defined vibration duration

We can trigger vibration on supported devices like so:

navigator.vibrate(50);

But does the API support any access to user-defaults? In other words, is it possible to get the vibration duration from the OS? So when a user would normally press a button when using the device, get that vibration duration (if any)?



from Get user-defined vibration duration

No comments:

Post a Comment