Access API: What's Included
In this article
- Determine which version of Kiosk Pro is being used
- Access the Unique iPad ID and Group IDs set in Kiosk Pro settings
- Control your content based on the device’s orientation
- Determine if device is currently using VoiceOver accessibility
- Check current battery status and level
Determine which version of Kiosk Pro is being used
These API calls allow you to check which version of Kiosk Pro you are currently running, including the app name (for example, Kiosk Pro Plus) and the version number (for example, 6.8.1). This information can be useful if you are deploying a new API call that may not be supported across all kiosks in your deployment or can be used for troubleshooting.
Access the Unique iPad ID and Group IDs set in Kiosk Pro settings
This lets you identify which kiosk is requesting a page or to tag form data with the ID of the sending kiosk. Checking for a unique ID can also provide a quick way of determining whether a visitor is accessing a site through Kiosk Pro (as opposed to a regular web browser).
To ensure that the ID variable is available when the ‘onload’ event is triggered, we recommend accessing the API by import. If you must access the API by injection, you will need to use the Availability API to determine when the function can safely be called.
Control your content based on the device’s orientation
This callback 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.
Determine if device is currently using VoiceOver accessibility
Added in version 9.0.5
VoiceOver is a native iOS gesture-based screen reader that lets visitors engage with your content even if they can't see the screen. When enabled, VoiceOver provides an audio description of everything happening on the screen, allowing visitors with visual impairments to navigate and engage with content.
VoiceOver is an iOS system level setting and cannot currently be enabled and/or disabled programmatically by the app.
We recommend setting up the iPad in Single App Mode with VoiceOver configured as the only Accessibility Shortcut (under iOS Settings > General > Accessibility > Accessibility Shortcut > VoiceOver only). This allows visitors to enable and disable VoiceOver by triple-clicking the Home button without any other on-screen input required.
Screen interactions are significantly different when VoiceOver is enabled so we've added this API to allow you to determine whether the device is currently using VoiceOver and to notify you when that status changes, allowing you to provide additional instructions on how to use the device in VoiceOver mode or how to disable VoiceOver, or to switch over to different content.
If using VoiceOver, you may want to delay the idle timeout period using our Idle Timer API (as touch events are not passed back to the app by the iOS operating system when VoiceOver is enabled and so the idle timer can execute even if a visitor is interacting with the screen).
Check current battery status and level
Added in version 9.2
This set of API calls allows you to check the current status of the battery and returns callbacks when charging status or battery levels change.