Type Number Library display.* Revision Current Public Release (2017.3135) Keywords safe area, content height See also display.safeActualContentWidth display.safeScreenOriginY display.getSafeAreaInsets()
The current public release is 2017.3135. This property is only available in daily build 2017.3141 or later.
The height of the screen "safe area" in Corona content units. The "safe area" is the rectangular region where it's safe to place important UI elements, ensuring that they are not obscured by status bars, device aspects like a sensor bar or rounded corners, software buttons, TV overscan areas, etc.
For devices which do not feature the concept of a safe area, this value is the same as display.actualContentHeight.
-- Create a vector rectangle sized exactly to the "safe area" local safeArea = display.newRect( display.safeScreenOriginX, display.safeScreenOriginY, display.safeActualContentWidth, display.safeActualContentHeight ) safeArea:translate( safeArea.width*0.5, safeArea.height*0.5 )