Accelerometer

From GiderosMobile
Revision as of 09:12, 23 August 2018 by Hgy29 (talk | contribs)

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

|}