Back

GetDisplayWidth

Hello World

Get the display width of the app in pixels.

app.GetDisplayWidth() → number: pixel

Therefore virtual buttons won't be included to the value.

See Also: GetDisplayHeight, GetScreenWidth

Example - Show display width

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