A Mac display that can be used for screen recording.

interface Display {
    id: number;
    localizedName?: string;
    frame: Bounds;
    isMain: boolean;
    availability: "available" | "notConnected" | "lidClosed";
}

Properties

id: number

An identifier that uniquely identifies this Mac display (CGDirectDisplayID).

localizedName?: string

Name of this display.

frame: Bounds

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

isMain: boolean

Indicates if this is the main display.

availability: "available" | "notConnected" | "lidClosed"

The current availability state of this display.

  • available: A display can be recorded
  • lidClosed: A display cannot be recorded, because the MacBook lid is closed (recovery: "Open MacBook lid")
  • notConnected: A display cannot be screen recorded, because it is currently not connected (recovery: "Connect display")

Generated using TypeDoc