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

JavaScript
var isTheCPUAllowedToSleep = navigator.mozPower.cpuSleepAllowed

Value

Return a boolean.

Specification

Not part of any specification.

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/powermanager/cpusleepallowed

API B2G Firefox OS Power Management Property Reference Référence