开发者

How do I get estimated battery life on Windows Phone 7

开发者 https://www.devze.com 2023-01-20 10:39 出处:网络
Back in the good ol\' Windows Mobile day (CE based) one good get a rough estimate of battery life using the CE CoreDll.dll. Well sometimes at least depending on your hardware. This was exposed via Get

Back in the good ol' Windows Mobile day (CE based) one good get a rough estimate of battery life using the CE CoreDll.dll. Well sometimes at least depending on your hardware. This was exposed via GetSystemPowerStatusEx.

WP7 be开发者_C百科ing SilverLight based I'm assuming these sorts of Interop approaches will no longer work. Is there an API that exposes power status info? I've done a quick search and browse but didn't see anything.


Currently there is no API method that will return the battery life.

0

精彩评论

暂无评论...
验证码 换一张
取 消