参数

mainWindow = new BrowserWindow({
//...
    fullscreenable:true,
    fullscreen: true,
    simpleFullscreen:true,
});

全屏函数

mainWindow.setFullScreen(true);
mainWindow.setSimpleFullScreen(true);

状态判断

mainWindow.isFullScreen()
mainWindow.isSimpleFullScreen()