currentMonitor
currentMonitor():
Promise<null|Monitor>
Defined in: window.ts:2462
Returns the monitor on which the window currently resides.
Returns null if current monitor can’t be detected.
Promise<null | Monitor>
import { currentMonitor } from '@tauri-apps/api/window';const monitor = await currentMonitor();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT