|Available since LÖVE 11.3|
|This function is not supported in earlier versions.|
Gets area inside the window which is known to be unobstructed by a system title bar, the iPhone X notch, etc. Useful for making sure UI elements can be seen by the user.
x, y, w, h = love.window.getSafeArea( )
- Starting position of safe area (x-axis).
- Starting position of safe area (y-axis).
- Width of safe area.
- Height of safe area.
- Currently it only has a proper implementation on iOS and will return the window's full size otherwise.
- Values returned are in DPI-scale units, not in pixels.
Tiếng Việt –