Back

GetScreenWidth

Hello World

Returns the total screen width of the device in pixels.

app.GetScreenWidth( options ) → Number: pixel

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

See Also: GetScreenHeight, GetScreenDensity

Example - Show Screen Width

function OnStart()
{
    var width = app.GetScreenWidth();
    app.Alert( width );
}
    Copy     Copy All       Run      
String: “Real”