W3C home > Mailing lists > Public > public-device-apis-log@w3.org > September 2021

Re: [screen-wake-lock] Need maximum screen brightness mode (#129)

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Sep 2021 09:17:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-927682878-1632734251-sysbot+gh@w3.org>
How would you see this use case covered now?

```js
document.querySelector('input[type=range]').oninput = () => {
  const brightness = event.target.value; // [0-100]
  navigator.wakeLock.request("screen", { brightness }).then(() => {
    // Screen brightness has been updated.
  });
}
```

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/129#issuecomment-927682878 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 27 September 2021 09:17:35 UTC

This archive was generated by hypermail 2.4.0 : Monday, 4 July 2022 12:47:59 UTC