Sciter.JS integration and API demo.
Calling native functions from script
Asset interface demo
These will test native functions defined in SOM_PASSPORT_BEGIN_EX / SOM_PASSPORT_END block
Calls Window.this.assetInterface.integerSum(a,b) on input
Calls Window.this.assetInterface.stringSum(a,b) on input
Calls Window.this.assetInterface.vectorIntegerMul(list,mul) on input
Calls Window.this.assetInterface.bytesSum(ArrayBuffer,ArrayBuffer) on input
Calls Window.this.xcall("mappedFunctionName", ...)
Use of native objects
Creates native object and uses its methods:
Use of native functors
requests native API (as map of functions) and uses them:
Running long tasks in worker threads
Calling script function from native side
These will use native handle_event() handler and call functions on script side from native side
This receives application events - broadcasted to all windows: