Back

GetDisplayWidth

GetDisplayHeight method gets the width of the screen area available to your app in pixels. This excludes the notification bar area at the top of the screen (if it is  visible).

app.GetDisplayWidth() -> number - pixel

Example - Example



function OnStart()
{
    width = app.GetDisplayWidth();
    app.ShowPopup( width );
}
    Copy     Copy All       Run