RootApp Object

The RootApp object is a helper object of the SiteKiosk Object Model.

Members Table

    The following table lists the members provided by the RootApp object.

    Methods Description
    registerForDeviceData Listener for keyboard emulation device input.

    This object is available through the main object SiteKiosk.

    Note that the path of a file using SiteKiosk objects must be allowed in the
    SiteKiosk configuration (Security -> Access -> URL's With Script Permission)
    if it is not a browser skin file.
    The following example registers a listener for a keyboard emulation device and displays the recieved data.

    <!DOCTYPE html>
    <html lang="en">
    	<meta charset="UTF-8">
    	<title>Keyboard Emulation Device Test</title>
    		var callbackFunc = function (data, devicename) {
    			document.getElementById("text").innerHTML = 
    			"Data received from device with the name: " 
    			+ devicename + ". Data: " + data;
    		function registerDevice() {
    			var deviceName = document.
    			if(deviceName == "")
    				return document.
    				innerHTML = "The device name is empty!";
    			registerForDeviceData(deviceName, callbackFunc);
    			return document.getElementById("foundDevice").
    			innerHTML = "Registered device: " + deviceName;
    		<h1>Test page for reading the input of keyboard 
    		emulation devices configured in the configuration 
    		of SiteKiosk</h1>
    			Listen to input from this device that has been 
    			configured in SiteKiosk: 
    			<input id="devicename" tpye="text" /> 
    			(state the device name) 
    			<button onclick="registerDevice()">
    			Register the listener</button>
    		<span id="foundDevice"></span>
    			Data that has been received: 
    			<span id="text">Waiting for data...</span>

Applies to
    SiteKiosk v9.0 (and later versions).

Back to top