primaryMonitor
primaryMonitor():
Promise<null|Monitor>
Defined in: window.ts:2479
Returns the primary monitor of the system.
Returns null if it can’t identify any monitor as a primary one.
Promise<null | Monitor>
import { primaryMonitor } from '@tauri-apps/api/window';const monitor = await primaryMonitor();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT