Skip to main content

Provides APIs to create windows, communicate with other windows and manipulate the current window.

Table of contents#

Classes#

Interfaces#

Variables#

appWindow#

Const appWindow: WindowManager

The manager for the current window. Allows you to manipulate the window object.

Defined in: window.ts:660

Functions#

availableMonitors#

availableMonitors(): Promise<Monitor[]>

Returns the list of all the monitors available on the system.

Returns: Promise<Monitor[]>

Defined in: window.ts:729


currentMonitor#

currentMonitor(): Promise<Monitor | null>

Returns the monitor on which the window currently resides. Returns null if current monitor can't be detected.

Returns: Promise<Monitor | null>

Defined in: window.ts:706


getAll#

getAll(): WindowDef[]

Gets metadata for all available webview windows.

Returns: WindowDef[]

The list of webview handles.

Defined in: window.ts:113


getCurrent#

getCurrent(): WebviewWindowHandle

Get a handle to the current webview window. Allows emitting and listening to events from the backend that are tied to the window.

Returns: WebviewWindowHandle

The current window handle.

Defined in: window.ts:104


primaryMonitor#

primaryMonitor(): Promise<Monitor | null>

Returns the primary monitor of the system. Returns null if it can't identify any monitor as a primary one.

Returns: Promise<Monitor | null>

Defined in: window.ts:719