chore: remove deprecated APIs (#18159)

This commit is contained in:
Milan Burda 2019-05-09 20:48:10 +02:00 committed by John Kleinschmidt
parent 96e19f1cc4
commit 019b31d084
7 changed files with 35 additions and 126 deletions

View file

@ -59,24 +59,6 @@ Emitted as soon as the systems screen is unlocked.
The `powerMonitor` module has the following methods:
### `powerMonitor.querySystemIdleState(idleThreshold, callback)` _(Deprecated)_
* `idleThreshold` Integer
* `callback` Function
* `idleState` String - Can be `active`, `idle`, `locked` or `unknown`
Calculate the system idle state. `idleThreshold` is the amount of time (in seconds)
before considered idle. `callback` will be called synchronously on some systems
and with an `idleState` argument that describes the system's state. `locked` is
available on supported systems only.
### `powerMonitor.querySystemIdleTime(callback)` _(Deprecated)_
* `callback` Function
* `idleTime` Integer - Idle time in seconds
Calculate system idle time in seconds.
### `powerMonitor.getSystemIdleState(idleThreshold)`
* `idleThreshold` Integer