Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

An element providing access to accelerometer for cordova applications.

License

Notifications You must be signed in to change notification settings

mormubis/cordova-accelerometer

Repository files navigation

Demo and API docs

<cordova-accelerometer>

<cordova-accelerometer> provides access to the device's accelerometer.

Installation

In your www project:

bower install --save cordova-accelerometer

In your cordova project:

cordova plugin add cordova-plugin-device-motion

Usage

<cordova-accelerometer
  auto
  loop
  period="3000"
  ready
  timestamp="1471173266"
  x="3"
  y="1.4"
  z="0"
></cordova-accelerometer>

<cordova-accelerometer> allow to read the state of the device's accelerometer in the current moment. ready means cordova is fully operative and acceleration shows the speed of the device.


Note

Due to restrictions ready attribute is not shown into attributes table.

About

An element providing access to accelerometer for cordova applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages