Tutorial: Window.hide

Window.hide

Hides the window

Example

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

hideWindow().then(() => console.log('Window is hidden')).catch(err => console.log(err));