From 8a2c35023fac9d6d55b2ebc6699b25d14d45456a Mon Sep 17 00:00:00 2001 From: Zachary Flower Date: Sun, 13 Aug 2017 00:35:03 -0600 Subject: [PATCH] :memo: Document simple fullscreen functionality [ci skip] --- docs/api/browser-window.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index e08c8de8c915..660db87ef5b2 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -176,6 +176,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`. * `fullscreenable` Boolean (optional) - Whether the window can be put into fullscreen mode. On macOS, also whether the maximize/zoom button should toggle full screen mode or maximize window. Default is `true`. + * `simpleFullscreen` Boolean (optional) - Use pre-Lion fullscreen on macOS. Default is `false`. * `skipTaskbar` Boolean (optional) - Whether to show the window in taskbar. Default is `false`. * `kiosk` Boolean (optional) - The kiosk mode. Default is `false`. @@ -766,6 +767,16 @@ Sets whether the window should be in fullscreen mode. Returns `Boolean` - Whether the window is in fullscreen mode. +#### `win.setSimpleFullScreen(flag)` _macOS_ + +* `flag` Boolean + +Sets whether the window should be in simple fullscreen mode. + +#### `win.isSimpleFullScreen()` _macOS_ + +Returns `Boolean` - Whether the window is in simple fullscreen mode. + #### `win.setAspectRatio(aspectRatio[, extraSize])` _macOS_ * `aspectRatio` Float - The aspect ratio to maintain for some portion of the