Difference between revisions of "Template:Application"

From WebOS Internals
Jump to navigation Jump to search
(added margin to fix format.)
(Add summary/description)
Line 2: Line 2:
 
<div style="background-color:#F5FAFF;padding:10px;border:1px solid #AAAAAA;margin-bottom:10px;">[[Portal:{{{type}}}_Applications_{{{tag}}}|« Go Back to the {{{tag}}} application list]]</div>
 
<div style="background-color:#F5FAFF;padding:10px;border:1px solid #AAAAAA;margin-bottom:10px;">[[Portal:{{{type}}}_Applications_{{{tag}}}|« Go Back to the {{{tag}}} application list]]</div>
 
<div style="margin-left:10px;float:right;width:180px;padding:10px;border-left:1px solid #AAAAAA;border-bottom:1px solid #AAAAAA;background-color:#FFF;">[[Image:{{{screenshot}}}|180px]]</div>
 
<div style="margin-left:10px;float:right;width:180px;padding:10px;border-left:1px solid #AAAAAA;border-bottom:1px solid #AAAAAA;background-color:#FFF;">[[Image:{{{screenshot}}}|180px]]</div>
<div style="border:1px solid #AAAAAA;padding:10px;background-color:#FFFFE0;"><h2>{{{name}}} - {{{version}}}</h2>
+
<div style="border:1px solid #AAAAAA;padding:10px;background-color:#FFFFE0;">This service provides access to the accelerometer driver's poll_interval parameter.  As of webOS 1.1.0, this interval is not accessible from application development and is set to 250ms.  This makes most accelerometer driven applications choppy and slow.  With this service, the poll_interval can be changed dynamically by the application. 
__TOC__
+
 
{{{description}}}
+
The four methods exposed to the user are:
</div>
+
 
<noinclude>
+
getPollFreq()          - returns the frequency in HZ of the accelerometer events
 +
getPollPeriod()        - returns the period in ms of the accelerometer events
 +
setPollFreq(freq)      - sets the frequency in HZ of the accelerometer events
 +
setPollPeriod(period)  - sets the period in ms of the accelerometer events
 +
 
 +
NOTE: This service does not modify the hardware, it simply increases the rate at which the driver sends accelerometer events to the application handlers listening for the 'acceleration' event.
 +
 
 
== Usage ==
 
== Usage ==
  

Revision as of 01:17, 7 August 2009

[[Portal:{{{type}}}_Applications_{{{tag}}}|« Go Back to the {{{tag}}} application list]]
[[Image:{{{screenshot}}}|180px]]
This service provides access to the accelerometer driver's poll_interval parameter. As of webOS 1.1.0, this interval is not accessible from application development and is set to 250ms. This makes most accelerometer driven applications choppy and slow. With this service, the poll_interval can be changed dynamically by the application.

The four methods exposed to the user are:

getPollFreq() - returns the frequency in HZ of the accelerometer events getPollPeriod() - returns the period in ms of the accelerometer events setPollFreq(freq) - sets the frequency in HZ of the accelerometer events setPollPeriod(period) - sets the period in ms of the accelerometer events

NOTE: This service does not modify the hardware, it simply increases the rate at which the driver sends accelerometer events to the application handlers listening for the 'acceleration' event.

Usage

Remember to use the {{!}} for "|" when in the description parameter.

<source lang="text">

This service provides access to the accelerometer driver's poll_interval parameter. As of webOS 1.1.0, this interval is not accessible from application development and is set to 250ms. This makes most accelerometer driven applications choppy and slow. With this service, the poll_interval can be changed dynamically by the application.

The four methods exposed to the user are:

getPollFreq() - returns the frequency in HZ of the accelerometer events getPollPeriod() - returns the period in ms of the accelerometer events setPollFreq(freq) - sets the frequency in HZ of the accelerometer events setPollPeriod(period) - sets the period in ms of the accelerometer events

NOTE: This service does not modify the hardware, it simply increases the rate at which the driver sends accelerometer events to the application handlers listening for the 'acceleration' event.

Usage

Remember to use the {{!}} for "|" when in the description parameter.

<source lang="text"> Template loop detected: Template:Application </source> </noinclude> </source>