Options
All
  • Public
  • Public/Protected
  • All
Menu

Module CordovaDeviceMotionPlugin

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.

Please use 'Accelerometer' as the plugin name in the manifest.json if you want to use this facility.

Usage:
navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);

Index