W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2019

[wake-lock] Make WakeLock constructable (#154)

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Thu, 07 Mar 2019 16:39:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issues.opened-418405753-1551976768-sysbot+gh@w3.org>
kenchris has just created a new issue for https://github.com/w3c/wake-lock:

== Make WakeLock constructable ==
I would like to know if people also think this is a good idea or not.

- This is more aligned with Generic Sensors and other newer APIs
- The async operations can be moved to `request()`
- We need to move async operations to `request()` anyway if we want to prompt in the future
- We can inherit from a generic `WakeLock` object and create `ScreenWakeLock` and `SystemWakeLock`

@domenic @reillyeon @tomayac @anssiko 

Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/154 using your GitHub account
Received on Thursday, 7 March 2019 16:39:34 UTC

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