Re: [battery] Detect battery saving mode

If i would want some sort of `batterylow` event trigger then i can do it on my own and just liten to the battery level change event and define my own set of rules.

On my android phone i can turn on battery saving mode whenever i want. Even if the battery is on 80%. This could be useful if i know i will be gone for a long time and won't be able to charge my phone for a while where i will spend time on my phone to pass my time.

or when i'm laying in my bed before i go to sleep and spend some time on my phone and it pass below 15% it goes in to battery saving mode. but i can immediately turn it off again cuz i will soon go to sleep (just want to speend 10 more minutes to read my emails) and then charge my phone overnight

I would want something more like android's `isPowerSaveMode()` detection
https://developer.android.com/reference/android/os/PowerManager.html#isPowerSaveMode()

the power saving mode is more user defined and not based on some `batterylow` event

-- 
GitHub Notification of comment by jimmywarting
Please view or discuss this issue at https://github.com/w3c/battery/issues/9#issuecomment-285302816 using your GitHub account

Received on Thursday, 9 March 2017 09:40:21 UTC