API: Access App Settings
Access Kiosk Pro's in-app settings menu through a JavaScript API call. Using an API Call to access settings can allow your content to trigger app settings after a different type of authentication request or using a different touch gesture than our standard Show Settings options.
In this article
Requirements
- Integration of our JavaScript API into your webpage
- Sample code to run within the app and download for integration into your own project is available here.
- Best practices for working with the JavaScript API are available here.
- App Settings
- Show Settings > Allow Settings Access through API > On
- JavaScript > Access JavaScript API = By Import
Triggers via API Functions
Trigger In-App Settings
This function triggers showing the app's in-app settings menu with or without the passcode configured in the app's settings.
Format | kp_InAppSettings_triggerInAppSettings(requirePasscode, callback); |
Parameters |
|
Callback format | callback(isTriggerEnabled); |
Callback return values |
|
Sample Code
- This sample code relies on the JavaScript APIs built into Kiosk Pro and will not run successfully in other browsers or within our in-app help interface.
- To run sample code, set the app's homepage to kioskgroup.com/admin-settings-api
- To download a .zip of sample code, click here.
Change Log
- Added in version 10.1