Skip to content

sud.getWindowInfo ​

JS
    Object sud.getWindowInfo()

Gets window information.

Return Value

  • Object: Returns window information.

Properties of the window information:

PropertyTypeDescription
pixelRationumberDevice pixel ratio
screenWidthnumberScreen width, in logical pixels
screenHeightnumberScreen height, in logical pixels
windowWidthnumberWindow width, in logical pixels
windowHeightnumberWindow height, in logical pixels
statusBarHeightnumberStatus bar height, in logical pixels
safeAreaObjectSafe area; in non-fullscreen mode the entire window is safe
screenTopnumberY value of the window's distance from the top edge of the screen, in logical pixels

Properties of the safeArea property

PropertyTypeDescription
leftnumberX coordinate of the top-left corner of the safe area, in logical pixels
rightnumberX coordinate of the bottom-right corner of the safe area, in logical pixels
topnumberY coordinate of the top-left corner of the safe area, in logical pixels
bottomnumberY coordinate of the bottom-right corner of the safe area, in logical pixels
widthnumberWidth of the safe area, in logical pixels
heightnumberHeight of the safe area, in logical pixels