Access API: Device Orientation
This API uses information sent from the device’s accelerometer to inform your code of the current orientation of the device. This is triggered automatically by the app on page load and after any change in the device’s orientation.
- By Import - recommended, works both online & offline, requires inclusion of kiosk_functions.js prior to any of the following calls.
- By Injection - only works offline, may not be available 'onload' event.
To run sample code, set the app's homepage to http://www.kioskproapp.com/device-orientation
This callback is triggered by the app on page load and after any change in the device's orientation.