diff -r 913c9751c067 -r 716254ccbcc0 org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-236F8C40-96D8-4408-97A7-CAA7E0B1FE46.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-236F8C40-96D8-4408-97A7-CAA7E0B1FE46.html Fri Mar 05 19:11:15 2010 -0800 @@ -0,0 +1,32 @@ + + +
Syntax:
+[void] sysinfo.stopvibra()+
Description:
+The stopvibra
method immediately interrupts the device vibration that has been started with the startvibra
method.
Argument:
+This method does not take any arguments.
+Return value:
+This method does not return a value.
+Example code:
+function callVibration() +{ + // define to vibrate infinitely + var duration = 0; + // get the system defined minimum intensity + var intensity = sysinfo.vibraminintensity + // start vibration + sysinfo.startvibra(duration, intensity); + // press any key to stop vibra + document.addEventListener("keypress", kpListener, false); +} +function kpListiner(event) +{ + sysinfo.stopvibra(); + document.removeEventListener("keypress", kpListener, false); +}+