Table of Contents

GetScreenWidth

(Information and examples taken from the DroidScript documentation)

Description

The GetScreenWidth method gets the width of the phone/tablet screen in pixels.

 app.GetScreenWidth();

Example

function OnStart()
{
  width = app.GetScreenWidth();
  app.ShowPopup( width );
}