Back

GetDisplayHeight

Hello World

Get the display height of the app in pixels.

app.GetDisplayHeight() → number: pixel

Therefore the android status bar and virtual buttons won't be included to the value.

See Also: GetDisplayWidth, GetScreenHeight

Example - Show display height

function OnStart()
{
    var height = app.GetDisplayHeight();
    app.Alert( height );
}
    Copy     Copy All       Run