Navigator:wakeLock 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Navigator
接口的 wakeLock
只读属性返回一个允许文档获取屏幕唤醒锁的 WakeLock
接口。当屏幕唤醒锁处于激活状态时,用户代理将尝试阻止设备调暗屏幕、完全关闭屏幕或显示屏幕保护程序。
语法
js
navigator.wakeLock
规范
Specification |
---|
Screen Wake Lock API # extensions-to-the-navigator-interface |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wakeLock |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.