Skip to main content

toggleMaximize

Description

Toggles the maximized state of the desktop window. If the window is in full screen, it leaves full screen instead of maximizing. Works on desktop only.

Parameters

None

Returns

Future<void>

Example

$app.toggleMaximize();
  • $app.isFullScreen() — whether the desktop window is currently in full screen