org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-571AF37F-1E95-462A-92D2-FEA2E62F1559.html
author Eugene Ostroukhov <eugeneo@symbian.org>
Wed, 26 May 2010 17:01:34 -0700
changeset 341 480716493610
parent 229 716254ccbcc0
permissions -rw-r--r--
Set content type for png files


<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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
device object </title><script type="text/javascript">
      function initPage() {}
    </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
device object</h1><div>
<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
1.1</a>.</p>
<p>The <code>device</code> object is a built-in JavaScript object
in the widget engine. It was introduced in WRT 1.1 to allow widgets access
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
is used to create service objects for specific Service APIs. These service
objects can then be used to access the services made available through the
Service APIs.</p>
<p>The <code>device</code> object can be accessed simply via <code>device</code>.
In the WRT environment, the term <code>device</code> is a reserved
keyword and should not be used as a user-defined global variable name for
other type of objects.</p>
<p><code>device</code> object methods:</p>
<ul>
<li><p><a href="GUID-04095E9A-50E7-4E5F-BD6F-71DA281A0080.html#GUID-04095E9A-50E7-4E5F-BD6F-71DA281A0080"><code>getServiceObject()</code></a></p>
</li>
</ul>
</div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>