|
1 |
|
2 <!DOCTYPE html |
|
3 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="stopvibra()"/><meta name="DC.Relation" scheme="URI" content="GUID-F26B6080-87E3-4AE1-82D6-B571158F0449"/><meta name="DC.Relation" scheme="URI" content="GUID-08AA357E-7499-4A8E-B756-4FCDFBEDB9FC"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C"/><meta name="DC.Relation" scheme="URI" content="GUID-1A678A11-0BDD-4F64-9F40-013F6CDB81D7"/><meta name="DC.Relation" scheme="URI" content="GUID-6B348161-2ED2-498E-A166-C3B28C58BC68"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-236F8C40-96D8-4408-97A7-CAA7E0B1FE46"/><title>stopvibra() </title><script type="text/javascript"> |
|
5 function initPage() {} |
|
6 </script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-236F8C40-96D8-4408-97A7-CAA7E0B1FE46">stopvibra()</h1><div> |
|
7 <p><strong>Syntax:</strong></p> |
|
8 <pre class="codeblock" id="GUID-7BE2B40C-3A30-4684-8DB9-DB6C3DFA317B">[void] sysinfo.stopvibra()</pre> |
|
9 <p><strong>Description:</strong></p> |
|
10 <p>The <code>stopvibra</code> method immediately interrupts the device vibration that has been started with the <a href="GUID-08AA357E-7499-4A8E-B756-4FCDFBEDB9FC.html#GUID-08AA357E-7499-4A8E-B756-4FCDFBEDB9FC"><code>startvibra</code></a> method.</p> |
|
11 <p><strong>Argument:</strong></p> |
|
12 <p>This method does not take any arguments.</p> |
|
13 <p><strong>Return value:</strong></p> |
|
14 <p>This method does not return a value.</p> |
|
15 <p><strong>Example code:</strong></p> |
|
16 <pre class="codeblock" id="GUID-380C662E-A8CB-4424-A1F7-FD8E0FB829E1">function callVibration() |
|
17 { |
|
18 // define to vibrate infinitely |
|
19 var duration = 0; |
|
20 // get the system defined minimum intensity |
|
21 var intensity = sysinfo.vibraminintensity |
|
22 // start vibration |
|
23 sysinfo.startvibra(duration, intensity); |
|
24 // press any key to stop vibra |
|
25 document.addEventListener("keypress", kpListener, false); |
|
26 } |
|
27 function kpListiner(event) |
|
28 { |
|
29 sysinfo.stopvibra(); |
|
30 document.removeEventListener("keypress", kpListener, false); |
|
31 }</pre> |
|
32 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html> |