Skip to main content

Describes a display.

Properties (17)

Property Type Default Required Description
aspectRatio⚓︎ string x

Aspect ratio of the display (e.g., 16:9).

bounds⚓︎ Bounds x

Bounds of the display in logical coordinates (width, height, left, and top).

capture⚓︎ (size: ScaleOptions | AbsoluteSizeOptions) => Promise<string> x

Captures a screenshot of the current display.

displayScaleFactor⚓︎ number x

Actual display scale factor set by the user in the display settings.

dpi⚓︎ number x

Display resolution.

electronBounds⚓︎ Bounds x

Bounds of the display in Electron DIP coordinates.

io.Connect Desktop 10.2@interopio/desktop 6.20
electronId⚓︎ number x

The Electron internal display ID.

io.Connect Desktop 10.2@interopio/desktop 6.20
electronWorkArea⚓︎ Bounds x

The working area of the display in Electron DIP coordinates.

io.Connect Desktop 10.2@interopio/desktop 6.20
id⚓︎ number x

Unique identifier associated with the display.

index⚓︎ number x

Index assigned to the display by the operating system.

isPrimary⚓︎ boolean x

If true, this is the primary display.

name⚓︎ string x

Name assigned to the display by the operating system.

scaleFactor⚓︎ number x

The logical scale factor of the display.

screenBounds⚓︎ Bounds x

Bounds of the display in physical screen pixels.

io.Connect Desktop 10.2@interopio/desktop 6.20
screenScaleFactor⚓︎ number x

The effective scale factor for this display. It can be different from displayScaleFactor if the text scale factor is applied for the user interface.

io.Connect Desktop 10.2@interopio/desktop 6.20
screenWorkArea⚓︎ Bounds x

The working area of the display in physical screen pixels.

io.Connect Desktop 10.2@interopio/desktop 6.20
workArea⚓︎ Bounds x

The working area of the display in logical coordinates.