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

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?

-  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 using your GitHub account

Sent via github-notify-ml as configured in

Received on Monday, 27 September 2021 09:40:15 UTC