Default Value for Basic & Plus:
Default Value for Enterprise:
- By Import
Other Possible Values:
- By Injection (Deprecated, Offline Only)
This method has the advantage of ensuring that all functions are loaded and available when the
window.onload event is triggered, which increases reliability and simplify coding of functions. This also allows you to only include these functions on pages where they are being used, which decreases loading time of other pages.
To use this method, you will need to include the 'kiosk_functions.js' file, referencing it as an external script in each page prior to any other external .js files or scripts that rely on these functions. To generate the latest version of 'kiosk_functions.js' compatible with the version of the app you are currently running, use the Generate API Functions File setting.
By Injection (Deprecated, Offline Only)
This is also the only option if you do not have direct access to add the 'kiosk_functions.js' file to each page and need access to these functions.
As our injection model is not able to provide the ability to inject hooks instantaneously into the current HTML-page, there may be a delay between
kp_Hooks_DidInject(). This will be called when all hooks finish injecting.
kioskpro_hooks_available. If this variable is defined and equal to 1, then hooks are available.
Our Availability API checks if the API is available before trying to call other API functions. Documentation is available here.
Values for Remote Settings Control & Managed App Configuration
Included in version 3.4. The option to access the API by injection was deprecated in version 10.0