Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An example to use #5

Open
mrbbp opened this issue Nov 9, 2016 · 3 comments
Open

An example to use #5

mrbbp opened this issue Nov 9, 2016 · 3 comments

Comments

@mrbbp
Copy link

mrbbp commented Nov 9, 2016

I'm sorry, i'm a beat newb. I'm able to use deviceorientation in html5, but i'm lost with your plugin
It would be kind to provide a code example.
I don't know how to use it and how to have an answer... What kind of object is returned.... Sorry...
Regards

@NeoLSN
Copy link
Owner

NeoLSN commented Dec 6, 2016

@pjardin
Copy link

pjardin commented Feb 18, 2017

hey i need an example too please, and that does not really explain how to use this for intel xdk

@ricopo1
Copy link

ricopo1 commented Apr 6, 2017

You can see example of use here:
https://github.com/zanderso/cordova-plugin-gyroscope/blob/master/doc/index.md
using the functions:

var gyroscope = navigator.gyroscope;
gyroscope.getCurrent
gyroscope.watch
gyroscope.clearWatch

When callback success you retrieve an object with the properties x,y,z,timestamp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants