Table of Contents

Vibrate

(Information and examples taken from the DroidScript documentation)

Description

The Vibrate method vibrates the phone/tablet with a given pattern.

 app.Vibrate( pattern );

The vibrate pattern is passed in as a text parameter with comma separated integer values given in milliseconds with this format: pause,vibrate,pause,vibrateā€¦


Example

function OnStart()
{
  app.Vibrate( "0,100,30,100,50,300" );
}