Skip to content

currentMonitor

Module @netwiv/api/window · Kind Function

import { currentMonitor } from '@netwiv/api/window';

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

function currentMonitor(): Promise<Monitor | null>
import { currentMonitor } from '@netwiv/api/window';
const monitor = await currentMonitor();

Upstream since 1.0.0


Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.