Device Orientation API
Last updated
Last updated
Device Orientation API allows web apps to access the gyroscope and compass data in order to determine the static orientation of the user's device in all the three dimensions.
You can refer to the code present in /partials/web-apis/device-orientation.html
file and use it accordingly.