Difference between revisions of "Template:Application"

From WebOS Internals
Jump to navigation Jump to search
(Add summary/description)
(Undo revision 3920 by Egaudet (Talk))
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;">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. 
+
<div style="border:1px solid #AAAAAA;padding:10px;background-color:#FFFFE0;"><h2>{{{name}}} - {{{version}}}</h2>
 
+
__TOC__
The four methods exposed to the user are:
+
{{{description}}}
 
+
</div>
getPollFreq()          - returns the frequency in HZ of the accelerometer events
+
<noinclude>
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:22, 7 August 2009

[[Portal:{{{type}}}_Applications_{{{tag}}}|« Go Back to the {{{tag}}} application list]]
[[Image:{{{screenshot}}}|180px]]

{{{name}}} - {{{version}}}

{{{description}}}

Usage

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

<source lang="text">

« Go Back to the Games - Use the main list's names application list
180px

Name - Name of the Application - 1.0.0 - Version major.minor.build

description - Describe the app in full detail, put anything you want.

</source>