vibrate timed - part-cw/lambdanative GitHub Wiki
(vibrate-timed milli)
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)