Accelerometer

From GiderosMobile
Revision as of 10:02, 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.

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