Skip to content

ElectronScreen.getDisplayMatching method

ElectronScreen › getDisplayMatching

Unofficial

Returns the display that most closely intersects the provided bounds.

Signature:

getDisplayMatching(rect: ElectronRectangle): ElectronDisplay

Parameters:

Parameter Type Description
rect ElectronRectangle The bounds to match against.

Returns: ElectronDisplayThe display that most closely intersects the provided bounds.