Retrieves information about the application. If the application was not launched from a manifest, the call will return the closest parent application manifest
and manifestUrl
. initialOptions
shows the parameters used when launched programmatically, or the startup_app
options if launched from manifest. The parentUuid
will be the uuid of the immediate parent, this key will not be present if the app has no parent.
response
{
initialOptions: {
name: "myApp",
url: "https://openfin.co",
uuid: "myApp",
autoShow: true
},
launchMode: 'fin-protocol' || 'fins-protocol' || 'shortcut' || 'command-line' || 'adapter' || 'other' || a process name (ex: 'openfin.exe'),
manifestUrl: "https://cdn.openfin.co/myapp",
manifest: {
startup_app:{
name: "myApp",
url: "https://openfin.co",
uuid: "myApp",
autoShow: true
},
runtime: {
arguments: "--v=1",
version: "9.61.31.51"
}
},
parentUuid: null,
runtime: {
version: "*.*.*.*"
}
}
Example
const app = fin.desktop.Application.getCurrent();
app.getInfo(info => {
console.log(`Initial Options: ${info.initialOptions}`);
console.log(`Launch mode: ${info.launchMode}`);
console.log(`Manifest url: ${info.manifestUrl}`);
console.log(`Launch Manifest: ${info.manifest}`);
console.log(`Parent Uuid: ${info.parentUuid}`);
console.log(`Running on ${info.runtime.version}`);
});