sud.getWindowInfo
JS
Object sud.getWindowInfo()Gets window information.
Return Value
- Object: Returns window information.
Properties of the window information:
| Property | Type | Description |
|---|---|---|
| pixelRatio | number | Device pixel ratio |
| screenWidth | number | Screen width, in logical pixels |
| screenHeight | number | Screen height, in logical pixels |
| windowWidth | number | Window width, in logical pixels |
| windowHeight | number | Window height, in logical pixels |
| statusBarHeight | number | Status bar height, in logical pixels |
| safeArea | Object | Safe area; in non-fullscreen mode the entire window is safe |
| screenTop | number | Y value of the window's distance from the top edge of the screen, in logical pixels |
Properties of the safeArea property
| Property | Type | Description |
|---|---|---|
| left | number | X coordinate of the top-left corner of the safe area, in logical pixels |
| right | number | X coordinate of the bottom-right corner of the safe area, in logical pixels |
| top | number | Y coordinate of the top-left corner of the safe area, in logical pixels |
| bottom | number | Y coordinate of the bottom-right corner of the safe area, in logical pixels |
| width | number | Width of the safe area, in logical pixels |
| height | number | Height of the safe area, in logical pixels |
