org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-63F4E17E-8895-4054-82AD-762B90610B30.html
changeset 229 716254ccbcc0
equal deleted inserted replaced
228:913c9751c067 229:716254ccbcc0
       
     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="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
       
     5 home screen widgets </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-63F4E17E-8895-4054-82AD-762B90610B30">Developing
       
     8 home screen widgets</h1><div><p>You can enable WRT widgets for display on the home screen.</p>
       
     9 <p>To develop a home screen widget:</p>
       
    10 <ol>
       
    11 <li id="GUID-DDD409E8-D066-4607-8746-F3C23A1BADF6"><a name="GUID-DDD409E8-D066-4607-8746-F3C23A1BADF6"><!----></a><p> To enable a widget
       
    12 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
       
    13 of any WRT 1.1 widget.</p></li>
       
    14 <li id="GUID-F84AA75D-E81D-492C-A688-B88A2DEDBF07"><a name="GUID-F84AA75D-E81D-492C-A688-B88A2DEDBF07"><!----></a><p>To implement a function
       
    15 in the widget that determines whether to display content in full screen or
       
    16 home screen view and to call that function in response to events fired by
       
    17 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>
       
    18 <li id="GUID-ECB68997-BD4E-4343-BB51-C5596CEAB49A"><a name="GUID-ECB68997-BD4E-4343-BB51-C5596CEAB49A"><!----></a><p>To retrieve data for
       
    19 the widget in the home screen view, add HTML, JavaScript, and CSS definitions.
       
    20 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>
       
    21 </ol>
       
    22 <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>
       
    23 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>