Skip to content
Chris Petersen edited this page Oct 16, 2014 · 3 revisions

vibrate-timed causes the Android phone to vibrate for the given number of milliseconds. On an iPhone this procedure has the same effect as vibrate, causing a vibration of 400 milliseconds (since this is not configurable). This procedure does nothing on other platforms. Note that if audio is also being used on an iPhone, the audio subsystem must be shutdown prior to calling vibrate-timed or vibrate.

Parameter Description
milli The number of milliseconds to vibrate the phone

Example

Example of performing a vibration for 1 second on an Android phone.

(vibrate-timed 1000)
Clone this wiki locally