Tutorial: Window.maximize

Window.maximize

Maximizes the window

Example

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

maxWindow().then(() => console.log('Maximized window')).catch(err => console.log(err));