org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-7FD32D4D-871F-4251-844C-6CB59B593730.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="mobileconcept"/><meta name="DC.Title" content="Returned sensor data"/><meta name="DC.Relation" scheme="URI" content="GUID-B024688A-3701-4282-9C98-D984477E00C2"/><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-B77C2006-879F-4AC6-B7BF-04B25B563A29"/><meta name="DC.Relation" scheme="URI" content="GUID-B4897257-F7BC-4C32-9C6C-A577FDAC5D09"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-7FD32D4D-871F-4251-844C-6CB59B593730"/><title>Returned
       
     5 sensor data </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-7FD32D4D-871F-4251-844C-6CB59B593730">Returned
       
     8 sensor data</h1><div>
       
     9 <p>The <code>ReturnValue</code> property returned by <a href="GUID-C7C3B541-8D28-4DC6-9003-ECF57F26C608.html#GUID-C7C3B541-8D28-4DC6-9003-ECF57F26C608"><code>callback</code></a> is an object containing data from one sensor channel. <code>callback</code> returns
       
    10 an object every time a notification is received for the <a href="GUID-B024688A-3701-4282-9C98-D984477E00C2.html#GUID-B024688A-3701-4282-9C98-D984477E00C2">specified
       
    11 channel</a>. The exact set of object properties depends on the type of
       
    12 sensor data provided by the channel:</p>
       
    13 <ul>
       
    14 <li><p><a href="#GUID-CB1171A2-636D-411C-BC94-76A15330809D"><code>AccelerometerAxis</code></a></p></li>
       
    15 <li><p><a href="#GUID-18C19DEC-98DD-428D-A558-E6F6EB7F63B0"><code>AccelerometerDoubleTapping</code></a></p></li>
       
    16 <li><p><a href="#GUID-9A46418C-4FDA-4EBC-AF50-045CCE00B0B2"><code>Orientation</code></a></p></li>
       
    17 <li><p><a href="#GUID-5327B865-96F5-4CC1-9672-023E1564DA33"><code>Rotation</code></a></p></li>
       
    18 </ul>
       
    19 <div class="tablenoborder"><a name="GUID-CB1171A2-636D-411C-BC94-76A15330809D"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-CB1171A2-636D-411C-BC94-76A15330809D" frame="border" border="1" rules="all"><caption><strong>Table: </strong>Object properties
       
    20 for AccelerometerAxis data</caption>
       
    21 
       
    22 <thead align="left">
       
    23 <tr class="title "><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64590">
       
    24 <p>Property</p>
       
    25 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64595">
       
    26 <p>Type</p>
       
    27 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64600">
       
    28 <p>Value</p>
       
    29 </th></tr>
       
    30 </thead>
       
    31 <tbody>
       
    32 <tr class="">
       
    33 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64590 ">
       
    34 <p><code>DataType</code></p>
       
    35 </td>
       
    36 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64595 ">
       
    37 <p>string</p>
       
    38 </td>
       
    39 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64600 ">
       
    40 <p><code>"AxisData"</code></p>
       
    41 </td>
       
    42 </tr>
       
    43 <tr class="bg ">
       
    44 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64590 ">
       
    45 <p><code>TimeStamp</code></p>
       
    46 </td>
       
    47 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64595 ">
       
    48 <p><span>string</span></p>
       
    49 </td>
       
    50 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64600 ">&nbsp;</td>
       
    51 </tr>
       
    52 <tr class="">
       
    53 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64590 ">
       
    54 <p><code>XAxisData</code></p>
       
    55 </td>
       
    56 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64595 ">
       
    57 <p>number</p>
       
    58 </td>
       
    59 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64600 ">&nbsp;</td>
       
    60 </tr>
       
    61 <tr class="bg ">
       
    62 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64590 ">
       
    63 <p><code>YAxisData</code></p>
       
    64 </td>
       
    65 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64595 ">
       
    66 <p>number</p>
       
    67 </td>
       
    68 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64600 ">&nbsp;</td>
       
    69 </tr>
       
    70 <tr class="">
       
    71 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64590 ">
       
    72 <p><code>ZAxisData</code></p>
       
    73 </td>
       
    74 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64595 ">
       
    75 <p>number</p>
       
    76 </td>
       
    77 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64600 ">&nbsp;</td>
       
    78 </tr>
       
    79 </tbody>
       
    80 </table></div><div class="tablenoborder"><a name="GUID-18C19DEC-98DD-428D-A558-E6F6EB7F63B0"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-18C19DEC-98DD-428D-A558-E6F6EB7F63B0" frame="border" border="1" rules="all"><caption><strong>Table: </strong>Object
       
    81 properties for AccelerometerDoubleTapping data</caption>
       
    82 
       
    83 <thead align="left">
       
    84 <tr class="title "><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64720">
       
    85 <p>Property</p>
       
    86 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64725">
       
    87 <p>Type</p>
       
    88 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64730">
       
    89 <p>Value</p>
       
    90 </th></tr>
       
    91 </thead>
       
    92 <tbody>
       
    93 <tr class="">
       
    94 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64720 ">
       
    95 <p><code>DataType</code></p>
       
    96 </td>
       
    97 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64725 ">
       
    98 <p>string</p>
       
    99 </td>
       
   100 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64730 ">
       
   101 <p><code>"DoubleTappingData"</code></p>
       
   102 </td>
       
   103 </tr>
       
   104 <tr class="bg ">
       
   105 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64720 ">
       
   106 <p><code>TimeStamp</code></p>
       
   107 </td>
       
   108 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64725 ">
       
   109 <p><span>string</span></p>
       
   110 </td>
       
   111 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64730 ">&nbsp;</td>
       
   112 </tr>
       
   113 <tr class="">
       
   114 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64720 ">
       
   115 <p><code>DeviceDirection</code></p>
       
   116 </td>
       
   117 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64725 ">
       
   118 <p>number</p>
       
   119 </td>
       
   120 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64730 ">&nbsp;</td>
       
   121 </tr>
       
   122 </tbody>
       
   123 </table></div><div class="tablenoborder"><a name="GUID-9A46418C-4FDA-4EBC-AF50-045CCE00B0B2"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-9A46418C-4FDA-4EBC-AF50-045CCE00B0B2" frame="border" border="1" rules="all"><caption><strong>Table: </strong>Object
       
   124 properties for Orientation data</caption>
       
   125 
       
   126 <thead align="left">
       
   127 <tr class="title "><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64814">
       
   128 <p>Property</p>
       
   129 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64819">
       
   130 <p>Type</p>
       
   131 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64824">
       
   132 <p>Value</p>
       
   133 </th></tr>
       
   134 </thead>
       
   135 <tbody>
       
   136 <tr class="">
       
   137 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64814 ">
       
   138 <p><code>DataType</code></p>
       
   139 </td>
       
   140 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64819 ">
       
   141 <p>string</p>
       
   142 </td>
       
   143 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64824 ">
       
   144 <p><code>"OrientationData"</code></p>
       
   145 </td>
       
   146 </tr>
       
   147 <tr class="bg ">
       
   148 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64814 ">
       
   149 <p><code>TimeStamp</code></p>
       
   150 </td>
       
   151 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64819 ">
       
   152 <p><span>string</span></p>
       
   153 </td>
       
   154 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64824 ">&nbsp;</td>
       
   155 </tr>
       
   156 <tr class="">
       
   157 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64814 ">
       
   158 <p><code>DeviceOrientation</code></p>
       
   159 </td>
       
   160 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64819 ">
       
   161 <p>string</p>
       
   162 </td>
       
   163 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64824 ">
       
   164 <p>Possible values:</p>
       
   165 <ul>
       
   166 <li><p><code>"Undefined"</code></p></li>
       
   167 <li><p><code>"DisplayUp"</code></p></li>
       
   168 <li><p><code>"DisplayDown"</code></p></li>
       
   169 <li><p><code>"DisplayLeftUp"</code></p></li>
       
   170 <li><p><code>"DisplayRightUp"</code></p></li>
       
   171 <li><p><code>"DisplayUpwards"</code></p></li>
       
   172 <li><p><code>"DisplayDownwards"</code></p></li>
       
   173 </ul>
       
   174 </td>
       
   175 </tr>
       
   176 </tbody>
       
   177 </table></div><div class="tablenoborder"><a name="GUID-5327B865-96F5-4CC1-9672-023E1564DA33"><!----></a><table cellpadding="4" cellspacing="0" summary="" id="GUID-5327B865-96F5-4CC1-9672-023E1564DA33" frame="border" border="1" rules="all"><caption><strong>Table: </strong>Object
       
   178 properties for Rotation data</caption>
       
   179 
       
   180 <thead align="left">
       
   181 <tr class="title "><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64950">
       
   182 <p>Property</p>
       
   183 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64955">
       
   184 <p>Type</p>
       
   185 </th><th class="cellrowborder" valign="top" width="33.33333333333333%" id="d0e64960">
       
   186 <p>Value</p>
       
   187 </th></tr>
       
   188 </thead>
       
   189 <tbody>
       
   190 <tr class="">
       
   191 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64950 ">
       
   192 <p><code>DataType</code></p>
       
   193 </td>
       
   194 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64955 ">
       
   195 <p>string</p>
       
   196 </td>
       
   197 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64960 ">
       
   198 <p><code>"RotationData"</code></p>
       
   199 </td>
       
   200 </tr>
       
   201 <tr class="bg ">
       
   202 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64950 ">
       
   203 <p><code>TimeStamp</code></p>
       
   204 </td>
       
   205 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64955 ">
       
   206 <p><span>string</span></p>
       
   207 </td>
       
   208 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64960 ">&nbsp;</td>
       
   209 </tr>
       
   210 <tr class="">
       
   211 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64950 ">
       
   212 <p><code>XRotation</code></p>
       
   213 </td>
       
   214 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64955 ">
       
   215 <p>number</p>
       
   216 </td>
       
   217 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64960 ">&nbsp;</td>
       
   218 </tr>
       
   219 <tr class="bg ">
       
   220 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64950 ">
       
   221 <p><code>YRotation</code></p>
       
   222 </td>
       
   223 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64955 ">
       
   224 <p>number</p>
       
   225 </td>
       
   226 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64960 ">&nbsp;</td>
       
   227 </tr>
       
   228 <tr class="">
       
   229 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64950 ">
       
   230 <p><code>ZRotation</code></p>
       
   231 </td>
       
   232 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64955 ">
       
   233 <p>number</p>
       
   234 </td>
       
   235 <td class="cellrowborder" valign="top" width="33.33333333333333%" headers="d0e64960 ">&nbsp;</td>
       
   236 </tr>
       
   237 </tbody>
       
   238 </table></div></div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>