Back
GetScreenDensity
Hello World
Returns the density of the device's screen.
app.GetScreenDensity() →
Number:
integer
See Also:
GetScreenWidth
,
GetScreenHeight
,
SetDensity
Example - Show Screen Density
function
OnStart
(
)
{
var
dens
=
app
.
GetScreenDensity
(
)
;
app
.
Alert
(
dens
)
;
}
Copy
Copy All
Run