mobicontrol.screen

This namespace provides access to the screen functionality.
Since:

Methods

static disableAdaptiveBrightness()

Disable the screen adaptive brightness mode.
Since:

static enableAdaptiveBrightness()

Enable the screen adaptive brightness mode.
Since:

static getBrightness() → {number}

Get the screen brightness.
Returns:
number - The current screen brightness, from 0 to 1.
Since:

static isAdaptiveBrightnessEnabled() → {boolean}

Get the screen adaptive brightness mode.
Returns:
boolean - true if the screen adaptive brightness is enabled, false otherwise.
Since:

static setBrightness(brightness)

Set device screen brightness.

On some devices setting screen brightness won't take effect when adaptive brightness is on. Call mobicontrol.screen.disableAdaptiveBrightness to turn it off.

Parameters:
Name Type Description
brightness number Screen brightness, must be a number from 0 to 1.
Throws:
Since: