Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
6 results across 6 corpora for WakeLockSentinel.
Developer library 6
Firefox 126 release notes for developers
e that would typically keep it awake. The API is accessed through Navigator.wakeLock in secure contexts, which returns a WakeLock. This allows you to request a WakeLockSentinel, which can be used to monitor the status of the wake lock and release it manually ([Firefox bug 1589554](https://bugzil.la/1589554), [Firefox bug 1874849](https://bugzil.la/1874849)). - All [`RTCIceCandidate`](/docs/Web/API/RTCIceCandidate) pr
WakeLock
hence the system wake lock, is exposed through the Navigator.wakeLock property. ## Instance methods - request() - : Returns a Promise that fulfills with a WakeLockSentinel object if the screen wake lock is granted. ## Examples The following code `awaits` the request for a WakeLockSentinel object, and continues if the request is granted. The WakeLock.request() method is wrapped in a `try...catch` statement to
WakeLock: request() method
Screen Wake Lock API The **`request()`** method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted. The screen wake lock prevents device screens from dimming or locking when an application needs to keep running. ## Syntax ```js-nolint request(type) ``` ### Parameters - `type` - : A string specifying the screen wake lock type, fro
Screen Wake Lock API
ce, scanning a QR/barcode or applications that use voice or gesture control, rather than tactile input (the default way to keep a screen awake). You acquire a WakeLockSentinel object by calling the navigator.wakeLock.request() Promise-based method that resolves if the platform allows it. A request may be rejected for a number of reasons, including system settings (such as power save mode or low battery level) or if
WakeLockSentinel
Screen Wake Lock API The **`WakeLockSentinel`** interface of the [Screen Wake Lock API](/docs/Web/API/Screen_Wake_Lock_API) can be used to monitor the status of the platform screen wake lock, and manually release the lock when needed. The screen wake lock prevents device screens from dimming or locking when an application needs to keep running. A screen wake lock is requested using the navigator.wakeLock.request()
WakeLockSentinel: released property
Screen Wake Lock API The **`released`** read-only property of the WakeLockSentinel interface returns a boolean that indicates whether a WakeLockSentinel has been released. The `WakeLockSentinel` is released when the associated platform screen wake lock is revoked; afterwards `released` will always return `true`. If a subsequent screen wake lock is required, the application will need to request a new screen wake loc