Screen Wake Lock API

Overview

Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when the app needs to keep running.

Demo

https://nectar.website/demo/web-apis/screen-wake-lock/

Usage

You can refer to the code present in /partials/web-apis/screen-wake-lock.html file and use it accordingly.

Reference

https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API

Last updated