[screen-wake-lock] Be able to query if there are any screen wake-lock object active for the current page (#273)

PaulKinlan has just created a new issue for https://github.com/w3c/screen-wake-lock:

== Be able to query if there are any screen wake-lock object active for the current page ==
I'd like to be able to build a screen wake lock toggle web component, whilst it can handle it's own state there is currently no way to be able to see if there is already a wake lock activated by the current page, and there is no way to then manipulate the locks (the web component will be isolated and generic so it would have no knowledge of any one web apps structure)

I'd love to see something like a `query` method that would return if there is a WakeLock already applied to the page, and also a `navigator.wakelock.release()` that could remove all the current locks (just like changing page visibility does).

Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/273 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 17 August 2020 12:48:32 UTC