How to calculate batteryInDays from available information

Ive searched google and the forums for an answer to this and only found one.

But this answer did not talk about the `System.getStats().batteryInDays` that is shown in the API Docs here.

When I try accessing this in the code I get an error `Undefined symbol "batteryInDays" detected.` Im assuming this means it is no longer part of the API? or was it moved?

I would like to have the battery life in days for the watch face that Im creating. If theres an integrated way of doing this does anyone know how to do so? or if I need to calculate it could someone point me in the right direction?

Thank you for your time!

  • it would be only a few lines of code, I didn’t end up implementing this and am away from my computer but.

    check the battery level, wait some time, check battery level again, calculate remaining time based on that interval and %drop

    its not going to be dead accurate due to varying activities and battery draw