An object representing an application. Allows the developer to create, execute, show/close an application as well as listen to application events.
Options
name
The name of the application.
url
The url to the application.
uuid
The UUID of the application, unique within the set of all other applications running in the OpenFin Runtime. name
and uuid
must match.
plugins
Enable Flash at the application level. Default: false.
mainWindowOptions
The options of the main window of the application. For a description of these options, see
windowOptions. Full arguments for mainWindowOptions
can be found
here under the startup_app
config.
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);
});