Difference between revisions of "Accelerometer"
From GiderosMobile
Line 5: | Line 5: | ||
<br /> | <br /> | ||
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 === |
Revision as of 09:12, 23 August 2018
Supported platforms: android, ios
Available since: Gideros 2012.8
Description
The `Accelerometer` class is used to access accelerometer data.
{|-
| style="width: 50%;"|
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
| style="width: 50%;"|
Events
Constants
|}