πŸ—Ί
Window

todesktop.window.minimize

Minimize the currently active window
1
window.todesktop.window.minimize()
Copied!

todesktop.window.maximize

Maximize the currently active window
1
window.todesktop.window.maximize()
Copied!

todesktop.window.unmaximize

Unmaximizes the currently active window
1
window.todesktop.window.unmaximize()
Copied!

todesktop.window.fullscreen

Sets the currently active window to fullscreen
1
window.todesktop.window.fullscreen()
Copied!

todesktop.window.unfullscreen

Unsets the currently active window to fullscreen
1
window.todesktop.window.unfullscreen()
Copied!

Window event listeners

Entered fullscreen mode

1
window.todesktop.on('window.enter-full-screen', () => {
2
console.log('window is now in fullscreen mode')
3
});
Copied!

Exit fullscreen mode

1
window.todesktop.on('window.leave-full-screen', () => {
2
console.log('window has left fullscreen mode')
3
});
Copied!
Last modified 7mo ago