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

Re: [battery] Detect battery saving mode

From: Anssi Kostiainen via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Mar 2017 08:59:47 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-285293238-1489049985-sysbot+gh@w3.org>
Thanks for your suggestion.

I assume you mean some sort of `batterylow` event that maps to a platform-specific battery level trigger? Would you prefer to have this as additional [`BatteryManager`][1] API surface, or as a standalone event?

It would be great to hear more specific use cases, i.e. how you would use such a feature in real-life web applications. That'd help make a case why the feature is important and should be standardized. You can drop some pseudo code if you like, or give pointers to existing projects that would benefit from this feature.


[1]: https://w3c.github.io/battery/#the-batterymanager-interface

GitHub Notification of comment by anssiko
Please view or discuss this issue at https://github.com/w3c/battery/issues/9#issuecomment-285293238 using your GitHub account
Received on Thursday, 9 March 2017 08:59:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 12:18:52 UTC