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:

ParameterTypeDescription
rectElectronRectangleThe bounds to match against.

Returns: ElectronDisplay — The display that most closely intersects the provided bounds.