Skip to main content

isFullScreen

Description

Returns whether the desktop app window is currently in full-screen mode.

At startup the app reads the initial state from the window manager and caches it, then refreshes the value every time an onWindowEnterFullScreen or onWindowLeaveFullScreen event fires.

Parameters

None

Returns

TypeDescription
booltrue if the window is currently in full-screen mode, otherwise false

Notes

  • This feature works on macOS and Windows desktop only. On mobile it always returns false.
  • Full-screen state changes also arrive as a __fullscreenChanged message event.
  • Control full-screen switching with $app.toggleMaximize().

Example

// Check whether the window is currently full-screen
if ($app.isFullScreen()) {
console.log("전체화면 모드입니다.");
} else {
console.log("일반 창 모드입니다.");
}

// Receive full-screen state change events
$vm.onMessage = function(name, data) {
if (name === "__fullscreenChanged") {
console.log("전체화면:", data.isFullScreen);
}
};
  • $app.toggleMaximize() — Switch between full-screen and a normal window
  • $app.isUnfolded() — Check whether a foldable device is unfolded