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.
Signature
Section titled “Signature”function currentMonitor(): Promise<Monitor | null>Example
Section titled “Example”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.