Tutorial: application.constructor

application.constructor

An object representing an application. Allows the developer to create, execute, show/close an application as well as listen to application events.

The first argument is a Application Options object (see).

Example

var app = new fin.desktop.Application({
    url: "application.html",
    uuid: "74BED629-2D8E-4141-8582-73E364BDFA74",
    name: "Application Name",
    mainWindowOptions: {
        defaultHeight: 600,
        defaultWidth: 800,
        defaultTop: 300,
        defaultLeft: 300,
        autoShow: true
    }
}, function () {
    console.log("Application successfully created");
    app.run();
}, function (error) {
    console.log("Error creating application:", error);
});