doc: Separate pages into sub directories.
This commit is contained in:
parent
6b81070f67
commit
92241b91ce
21 changed files with 20 additions and 20 deletions
20
docs/api/browser/power-monitor.md
Normal file
20
docs/api/browser/power-monitor.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# power-monitor
|
||||
|
||||
The `power-monitor` module is used to monitor the power state change, you can
|
||||
only use it on the browser side.
|
||||
|
||||
An example is:
|
||||
|
||||
```javascript
|
||||
require('power-monitor').on('suspend', function() {
|
||||
console.log('The system is going to sleep');
|
||||
});
|
||||
```
|
||||
|
||||
## Event: suspend
|
||||
|
||||
Emitted when the system is suspending.
|
||||
|
||||
## Event: resume
|
||||
|
||||
Emitted when system is resuming.
|
Loading…
Add table
Add a link
Reference in a new issue