Tutorial: Window.flash

Window.flash

Flashes the window’s frame and taskbar icon until the window is activated.

Example

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

windowFlash().then(() => console.log('Window flashing')).catch(err => console.log(err));