Back

GetScreenHeight

JS Py
Hello World

Returns the total screen height of the device in pixels.

app.GetScreenHeight( options? ) → Number: pixel

With the 'Real' option softkeys will be included in the value.

See Also: GetScreenWidth, GetScreenDensity

Example - Show Screen Height

function OnStart()
{
    var height = app.GetScreenHeight();
    app.Alert( height );
}
from native import app

def OnStart():
    height = app.GetScreenHeight()
    app.Alert(str(height))
    Copy     Copy All       Run      
String: “Real”