This plugin provides access to the device's accelerometer. The accelerometer is a motion sensor that detects the change (delta) in movement relative to the current device orientation, in three dimensions along the x, y, and z axis.
Stop watching the Acceleration referenced by the watchID parameter.
The ID returned by navigator.accelerometer.watchAcceleration.
Get the current acceleration along the x, y, and z axes. These acceleration values are returned to the accelerometerSuccess callback function.
Success callback that gets the Acceleration object.
Success callback
Retrieves the device's current Acceleration at a regular interval, executing the accelerometerSuccess callback function each time. Specify the interval in milliseconds via the acceleratorOptions object's frequency parameter. The returned watch ID references the accelerometer's watch interval, and can be used with navigator.accelerometer.clearWatch to stop watching the accelerometer.
Callback, that called at every time interval and passes an Acceleration object.
Error callback.
Object with options for watchAcceleration