ScreenInfo
The screen
Read from Device.screen. Points, not pixels, except nativeWidth and nativeHeight.
Properties
brightnessNumberScreen brightness (0 to 1)
widthNumberScreen width in points (accounts for rotation)
heightNumberScreen height in points (accounts for rotation)
nativeWidthNumberScreen width in pixels (does not account for rotation)
nativeHeightNumberScreen height in pixels (does not account for rotation)
scaleNumberScreen scale factor (e.g. 2.0 for Retina, 3.0 for Super Retina)
appearanceStringCurrent appearance: "dark" or "light"
orientationStringDevice orientation: "portrait", "portraitUpsideDown", "landscapeLeft", "landscapeRight", "faceUp", "faceDown", or "unknown"
Methods
.setBrightness(percentage)Set screen brightness (0-1).
- percentage Number required