Returns the monitor on which the window currently resides. Returns null if current monitor can't be detected.
null
import { currentMonitor } from '@tauri-apps/api/window';const monitor = await currentMonitor(); Copy
import { currentMonitor } from '@tauri-apps/api/window';const monitor = await currentMonitor();
1.0.0
Returns the monitor on which the window currently resides. Returns
null
if current monitor can't be detected.