Difference between revisions of "Accelerometer"

From GiderosMobile
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2012.8<br/> === Description === <br /> The `Accelerometer` class is used to access accelerometer data...")
 
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''Supported platforms:''' <br/>
+
'''Supported platforms:''' android, ios<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 
'''Available since:''' Gideros 2012.8<br/>
 
=== Description ===
 
=== Description ===
Line 6: Line 6:
 
The `Accelerometer` class is used to access accelerometer data. <br />
 
The `Accelerometer` class is used to access accelerometer data. <br />
 
<br />
 
<br />
 +
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 
{|-
 
{|-
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Methods ===
 
=== Methods ===
 +
[[Accelerometer.isAvailable]] - Accelerometer - does the accelerometer available?<br/>
 +
[[Accelerometer.new]] - Creates new Accelerometer instance<br/>
 +
[[Accelerometer:getAcceleration]] - Accelerometer - returns the 3-axis acceleration measured by the accelerometer<br/>
 +
[[Accelerometer:start]] - Accelerometer - starts accelerometer updates<br/>
 +
[[Accelerometer:stop]] - Accelerometer - starts accelerometer updates<br/>
 
| style="width: 50%;"|
 
| style="width: 50%;"|
 
=== Events ===
 
=== Events ===
 
=== Constants ===
 
=== Constants ===
 
|}
 
|}

Revision as of 08:56, 23 August 2018

Supported platforms: android, ios
Available since: Gideros 2012.8

Description


The `Accelerometer` class is used to access accelerometer data.





Methods

Accelerometer.isAvailable - Accelerometer - does the accelerometer available?
Accelerometer.new - Creates new Accelerometer instance
Accelerometer:getAcceleration - Accelerometer - returns the 3-axis acceleration measured by the accelerometer
Accelerometer:start - Accelerometer - starts accelerometer updates
Accelerometer:stop - Accelerometer - starts accelerometer updates

Events

Constants