Skip to content

exec

exec(funcName, …args): Promise<any>

Defined in: internal/internal.ts:33

Executes an external function, and main callback handler for the XJS Framework.

Since 2.9, this is exposed to provide an alternative way of handling new XBC properties, methods and item/source properties without having to wait for a new update. This requires some knowledge on the needed native XBC calls.

Usage: (This sample is basically the same as #core/App#getFrameTime getFrameTime)

XJS.exec('AppGetPropertyAsync', 'frametime')
.then(function(frametime) {
// do something here
});

string

any[]

Promise<any>