whale.power
Description: | Use the whale.power API to override the system's power management features. |
---|---|
Availability: | Since Chrome 27. |
Permissions: | "power" |
## Types
### Level
| Enum |
|---|
|
## Methods
- `"system"`
- Prevent the system from sleeping in response to user inactivity.
- `"display"`
- Prevent the display from being turned off or dimmed or the system from sleeping in response to user inactivity.
### requestKeepAwake
`whale.power.requestKeepAwake( [Level](/extensions/power#type-Level) level)`
Requests that power management be temporarily disabled. |level| describes the degree to which power management should be disabled. If a request previously made by the same app is still active, it will be replaced by the new request.
| Parameters |
|---|
| [Level](/extensions/power#type-Level) | level | |
### releaseKeepAwake
`whale.power.releaseKeepAwake()`
Releases a request previously made via requestKeepAwake().