plugins/org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-571AF37F-1E95-462A-92D2-FEA2E62F1559.html
equal
deleted
inserted
replaced
|
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="JavaScript device object"/><meta name="DC.Relation" scheme="URI" content="GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C"/><meta name="DC.Relation" scheme="URI" content="GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-571AF37F-1E95-462A-92D2-FEA2E62F1559"/><title>JavaScript |
|
5 device object </title><script type="text/javascript"> |
|
6 function initPage() {} |
|
7 </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-571AF37F-1E95-462A-92D2-FEA2E62F1559">JavaScript |
|
8 device object</h1><div> |
|
9 <p>The <code>device</code> object is supported since <a href="GUID-1A3ECAC1-3F09-4602-A1CD-82164040A664.html#GUID-1A3ECAC1-3F09-4602-A1CD-82164040A664">WRT |
|
10 1.1</a>.</p> |
|
11 <p>The <code>device</code> object is a built-in JavaScript object |
|
12 in the widget engine. It was introduced in WRT 1.1 to allow widgets access |
|
13 to <a href="GUID-46EABDC1-37CB-412A-ACAD-1A1A9466BB68.html#GUID-46EABDC1-37CB-412A-ACAD-1A1A9466BB68">S60 Platform Services</a> through <a href="GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C.html#GUID-65AAF569-D347-462B-B59A-9D7CA184AB9C">Service APIs</a>. The <code>device</code> object |
|
14 is used to create service objects for specific Service APIs. These service |
|
15 objects can then be used to access the services made available through the |
|
16 Service APIs.</p> |
|
17 <p>The <code>device</code> object can be accessed simply via <code>device</code>. |
|
18 In the WRT environment, the term <code>device</code> is a reserved |
|
19 keyword and should not be used as a user-defined global variable name for |
|
20 other type of objects.</p> |
|
21 <p><code>device</code> object methods:</p> |
|
22 <ul> |
|
23 <li><p><a href="GUID-04095E9A-50E7-4E5F-BD6F-71DA281A0080.html#GUID-04095E9A-50E7-4E5F-BD6F-71DA281A0080"><code>getServiceObject()</code></a></p> |
|
24 </li> |
|
25 </ul> |
|
26 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html> |