Navigator:wakeLock 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-cn/web/api/screen_wake_lock_api/index.md)
Navigator
接口的 wakeLock
只读属性返回一个允许文档获取屏幕唤醒锁的 WakeLock
接口。当屏幕唤醒锁处于激活状态时,用户代理将尝试阻止设备调暗屏幕、完全关闭屏幕或显示屏幕保护程序。
语法
js
navigator.wakeLock
规范
Specification |
---|
Screen Wake Lock API # extensions-to-the-navigator-interface |
浏览器兼容性
BCD tables only load in the browser