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-configReceived 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