Tutorial: Window.getInfo

Window.getInfo

Gets an information object for the window.

Response

{
    "canNavigateBack": false,
    "canNavigateForward": false,
    "isUserMovementEnabled": true,
    "preloadScripts": [  // an array of all preload scripts' states
        {
            ...,  // preload script's properties
            "state": "load-failed" |  // preload script failed to load
                         "failed" |  // preload script failed to eval
                         "succeeded"  // preload script eval'ed successfully
        },
        ...
    ],
    "title": "JSDoc: Tutorial: Window.getInfo",
    "url": "https://cdn.openfin.co/docs/javascript/stable/tutorial-Window.getInfo.html"
}

Example

async function getInfo() {
    const app = await fin.Application.start({
        name: 'myApp',
        uuid: 'app-1',
        url: 'https://cdn.openfin.co/docs/javascript/stable/tutorial-Window.getInfo.html',
        autoShow: true
    });
    const win = await app.getWindow();
    return await win.getInfo();
}

getInfo().then(info => console.log(info)).catch(err => console.log(err));