Back

GetTop

JS Py
Hello World

Returns the upper border distance from the app display to the device screen as height relative float or in pixels with the px option.

app.GetTop( options? ) → Number: fraction (0..1)

Example - GetTop

function OnStart()
{
    var top = app.GetTop();
    app.Alert(top, "Top");
}
from native import app

def OnStart():
    top = app.GetTop()
    app.Alert(top, "Top")
Copy All       Run      
String: “px”