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:40:13 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-927698786-1632735612-sysbot+gh@w3.org>
That makes me think: Would you add another method to `WakeLockSentinel` to update the brightness while keeping the screen wake lock or would you have to release and obtain a new one to change the brightness?

Moreover, if we decide to add a second parameter to `request()` as below, how would proceed with feature detection for screen brightness? Looking for a potential `updateBrightness()` method in `WakeLockSentinel.prototype` or something else?

```diff
-  Promise<WakeLockSentinel> request(optional WakeLockType type = "screen");
+  Promise<WakeLockSentinel> request(optional WakeLockType type = "screen", WakeLockOptions options);

+  dictionary WakeLockOptions {
+    // The screen brightness ranging from 0.0 to 100.0.
+    double brightness;
+  };
```

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/129#issuecomment-927698786 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:40:15 UTC

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