void createSession()

Starts a new KioTouch session.

Security

Trust Level Required: Full Trust

Remarks

When a KioTouch session is started, a key and optional pin are generated, stored, and sent to all frames in every browser (given they have the required trust level) via the onKTSessionCreated callback. It is then possible for users, via a browser on their phone, to authenticate so that they may interact (virtually) with the mouse and keyboard of the kiosk. Upon calling this during an existing session, the existing session will be terminated before the new one begins.

Example


KioTouch.createSession();

function onKTSessionCreated(sessInfo)
{
	console.log('onKTSessionCreated: '+JSON.stringify(sessInfo));
	document.getElementById('KioTouchSessionPin').innerText = sessInfo.sessionCredentials.sessionPin;
	document.getElementById('KioTouchQr').src = sessInfo.qrSrcUrl;
}
function onKTSessionEnded()
{
	console.log('onKTSessionEnded');
}
function onKTClientConnected()
{
	console.log('onKTClientConnected');
}
function onKTClientDisconnected()
{
	console.log('onKTClientDisconnected');
}

Requirements

KioWare for Windows version 8.24 or greater.