Blackboard Example

by Provisio

JavaScript

// Load the unified Object Model (Required on Android machines)
if (typeof _siteKiosk !== 'undefined' && _siteKiosk.getUnifiedObjectModelCode) {
        new Function(_siteKiosk.getUnifiedObjectModelCode())();
}

// Add a new entry to the blackboard
siteKiosk.remote.blackboard.setValue("importantCategory.ImportantKey1","ImportantValue1");

// Add another entry
siteKiosk.remote.blackboard.setValue("importantCategory.ImportantKey2","ImportantValue2");

// Read the new added entry 
console.log(siteKiosk.remote.blackboard.getValue("importantCategory.ImportantKey1"));
console.log(siteKiosk.remote.blackboard.getValue("importantCategory.ImportantKey2"));

// Read entries by a key prefix
console.log(siteKiosk.remote.blackboard.getValues("importantCategory.ImportantKey*"));