Difference between revisions of "Template:Application"

From WebOS Internals
Jump to navigation Jump to search
(Add summary/description)
m (Moved DESCRIPTION above TOC because an empty description was leaving an ugly dead space under the TOC.)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<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;">
<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>
+
[[Portal:{{{type}}}_Applications_{{{tag}}}|« Go Back to the {{{tag}}} application list]]</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="margin-left:10px;float:right;padding:10px;border-left:1px solid #AAAAAA;border-bottom:1px solid #AAAAAA;background-color:#FFFFFF;">[[Image:{{{screenshot}}}|x270px]]</div>
 
+
<div style="border:1px solid #AAAAAA;padding:10px;background-color:#FFFFE0;"><h2>{{{name}}} - {{{version}}}</h2>
The four methods exposed to the user are:
+
{{{description}}}
 
+
__TOC__
getPollFreq()          - returns the frequency in HZ of the accelerometer events
+
</div>
getPollPeriod()        - returns the period in ms of the accelerometer events
+
<noinclude>
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 ==
  

Latest revision as of 21:53, 15 July 2010

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

{{{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
x270px

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

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

</source>