Tauri Core API - v2.9.1
    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<Monitor | null>

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

      1.0.0