org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-63F4E17E-8895-4054-82AD-762B90610B30.html
author Eugene Ostroukhov <eugeneo@symbian.org>
Tue, 30 Mar 2010 15:20:42 -0700
changeset 292 d1d1c556b0d1
parent 229 716254ccbcc0
permissions -rw-r--r--
Bug 2431 - Import gives incorrect warning


<!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="concept"/><meta name="DC.Title" content="Developing home screen widgets"/><meta name="abstract" content="You can enable WRT widgets for display on the home screen."/><meta name="description" content="You can enable WRT widgets for display on the home screen."/><meta name="DC.Relation" scheme="URI" content="GUID-2A74FA05-A13B-4133-8E1A-03152B6B1499"/><meta name="DC.Relation" scheme="URI" content="GUID-E3EA4F85-E0AE-42AB-8E51-EFD3F0E0A51E"/><meta name="DC.Relation" scheme="URI" content="GUID-1EFD7043-E9B8-4B4E-9EA6-A20B3EECC14A"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-63F4E17E-8895-4054-82AD-762B90610B30"/><meta name="DC.Language" content="en"/><title>Developing
home screen widgets </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-63F4E17E-8895-4054-82AD-762B90610B30">Developing
home screen widgets</h1><div><p>You can enable WRT widgets for display on the home screen.</p>
<p>To develop a home screen widget:</p>
<ol>
<li id="GUID-DDD409E8-D066-4607-8746-F3C23A1BADF6"><a name="GUID-DDD409E8-D066-4607-8746-F3C23A1BADF6"><!----></a><p> To enable a widget
for the home screen, add the <code>MiniViewEnabled</code> key to the <a href="GUID-BBA0299B-81B6-4508-8D5B-5627206CBF7B.html#GUID-BBA0299B-81B6-4508-8D5B-5627206CBF7B"><code>info.plist</code></a> file
of any WRT 1.1 widget.</p></li>
<li id="GUID-F84AA75D-E81D-492C-A688-B88A2DEDBF07"><a name="GUID-F84AA75D-E81D-492C-A688-B88A2DEDBF07"><!----></a><p>To implement a function
in the widget that determines whether to display content in full screen or
home screen view and to call that function in response to events fired by
the widget, create JavaScript. For more information, see <a href="GUID-5B0BE2FA-9FBB-4B8D-A1CE-219634C9C27A.html#GUID-5B0BE2FA-9FBB-4B8D-A1CE-219634C9C27A">Determining whether to display home screen or full screen</a>.</p></li>
<li id="GUID-ECB68997-BD4E-4343-BB51-C5596CEAB49A"><a name="GUID-ECB68997-BD4E-4343-BB51-C5596CEAB49A"><!----></a><p>To retrieve data for
the widget in the home screen view, add HTML, JavaScript, and CSS definitions.
For more information, see <a href="GUID-53F53EE5-D92E-49A9-B882-741D389412BE.html#GUID-53F53EE5-D92E-49A9-B882-741D389412BE">Creating content specific to home screen widgets</a>.</p></li>
</ol>
<p>For an example of developing a home screen widget, see <a href="GUID-1812A0D5-74CC-4A94-AF91-970465F6A738.html#GUID-1812A0D5-74CC-4A94-AF91-970465F6A738">Enabling STEW for the home screen</a>.</p>
</div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>