A macOS window that can be used for screen recording.

interface Window {
    id: number;
    title?: string;
    frame: Bounds;
    level: number;
    application_process_id?: number;
    application_name?: string;
}

Properties

id: number

An identifier that uniquely identifies this macOS window (CGWindowID).

title?: string

Title of the window.

frame: Bounds

Frame of the window, relative to the main display. Uses top-left coordinate space.

level: number

The level of the window relative to other windows.

application_process_id?: number

Process ID of the application that owns this window.

application_name?: string

Name of the application that owns this window.

Generated using TypeDoc