[battery] Explore a high-level API (#52)

anssiko has just created a new issue for https://github.com/w3c/battery:

== Explore a high-level API ==
> I believe these valid use-cases can be satisfied with `onlowpower` and maybe `onfullpower` events, rather than the current API. The existing API can have its precision reduced, likely without impacting valid use-cases. If absolutely necessary, we could imagine a 3rd, `onverylowpower` event, which sites could use to e.g. save current state to localStorage, attempt to flush the send buffers in any Service Workers, and otherwise prepare to shut down safely.

via https://bugs.chromium.org/p/chromium/issues/detail?id=661792#c49

See also https://github.com/w3c/battery/issues/25#issuecomment-1027316300

Please view or discuss this issue at https://github.com/w3c/battery/issues/52 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 1 February 2022 21:44:35 UTC