These report screen dimensions in (screen-specific) device pixels
And these report in global display pixels
Locks the minimum brightness of the screen, forcing it to be at
least as bright as a certain brightness level. Each call to this
function must eventually be followed by a corresponding call to
unlockMinimumBrightness, with the same brightness level.
brightness | A brightness level, one of the above constants. |
Releases a lock on the screen brightness. This must be called
(eventually) after a corresponding call to lockMinimumBrightness.
brightness | A brightness level, one of the above constants. |
A unique identifier for this device, useful for requerying
for it via nsIScreenManager.
Get/set the screen rotation, on platforms that support changing
screen rotation.
The number of device pixels per screen point in HiDPI mode.
Returns 1.0 if HiDPI mode is disabled or unsupported.
Levels of brightness for the screen, from off to full brightness.
Allowable screen rotations, when the underlying widget toolkit
supports rotating the screen.
ROTATION_0_DEG is the default, unrotated configuration.