getWindowSizeSetting MethodStatic

Deprecated  in 3.6. Use ElectronHost.getWindowSizeAndPositionSetting.

Gets window size and position for a window, by name, from settings file, if present.

getWindowSizeSetting(windowName: string): undefined | WindowSizeAndPositionProps

@note Size and position values in the settings file will be updated differently depending on platform. On Linux values are only updated on window "unmaximize". On Windows and MacOS values are also updated on window manual resize or move. To get consistent behavior across different platforms, use ElectronHost.getWindowSizeAndPositionSetting.

Parameter Type Description
windowName string  

Returns - undefined | WindowSizeAndPositionProps

Defined in

Last Updated: 16 April, 2024