primaryMonitor
Module @netwiv/api/window · Kind Function
import { primaryMonitor } from '@netwiv/api/window';Returns the primary monitor of the system.
Returns null if it can’t identify any monitor as a primary one.
Signature
Section titled “Signature”function primaryMonitor(): Promise<Monitor | null>Example
Section titled “Example”import { primaryMonitor } from '@netwiv/api/window';const monitor = await primaryMonitor();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.