MozPowerManager.cpuSleepAllowed

This API is available on Firefox OS for internal applications only.

The MozPowerManager.cpuSleepAllowed property determines if the device's CPU will sleep after the screen is disabled. Setting this attribute to false will prevent the device from entering the suspend state.

Syntax

var isTheCPUAllowedToSleep = navigator.mozPower.cpuSleepAllowed

Value

Return a boolean.

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli, abhishekp, kscarfone, Sheppy, Jeremie
 Last updated by: chrisdavidmills,