Tauri Core API - v2.6.0
    Preparing search index...

    Function currentMonitor

    • Returns the monitor on which the window currently resides. Returns null if current monitor can't be detected.

      Returns Promise<null | Monitor>

      import { currentMonitor } from '@tauri-apps/api/window';
      const monitor = await currentMonitor();

      1.0.0