Reference displayWidth

displayWidth

A Number variable that stores the width of the screen display.

displayWidth is useful for running full-screen programs. Its value depends on the current pixelDensity().

Note: The actual screen width can be computed as displayWidth * pixelDensity().

Examples


Related References