Skip to content

Alternative vibrate extension primarially for Android

License

CC0-1.0, CC0-1.0 licenses found

Licenses found

CC0-1.0
LICENSE
CC0-1.0
LICENSE.md
Notifications You must be signed in to change notification settings

subsoap/vibrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vibrate

Alternative vibrate extension primarially for Android

https://github.com/subsoap/vibrate/archive/master.zip

vibrate.vibrate(duration)

If duration is not set it will default to 100.

vibrate.cancel()

vibrate.vibrate({pattern})

For example, vibrate.vibrate({0, 100, 200, 100, 500, 1000, 100, 250, 1000, 100})

Patterns work based on {delay, duration, delay, duration ...} so in the example above there is no initial delay for the duration of 100ms, then a 200ms delay before another 100ms vibration duration and so on. Naturally you will want an even number of parameters, and only use positive whole numbers.

About

Alternative vibrate extension primarially for Android

Topics

Resources

License

CC0-1.0, CC0-1.0 licenses found

Licenses found

CC0-1.0
LICENSE
CC0-1.0
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published