4

I searched over the Internet and the only thing that I found a little bit helpful was the way to get Battery status on Windows Phone 8. But I want it on Windows 8 (RT).

Can anyone help me out?

1 Answer 1

6

According to everything that I can find, we do not have access to the Power API in WinRT, it is only available for a desktop application. See this MSDN Forum article

From above link:

Power Management Functions apply to "desktop app only".

No equivalent for the Power APIs in Metro style app. Please check Alternatives to Windows APIs in Metro style apps

Here is another thread http://social.msdn.microsoft.com/Forums/en-US/tailoringappsfordevices/thread/3e9dc84c-bbf9-42f3-bc19-25bce3e7e04c for your reference.

3
  • How they want to be competitive in mobile market when they don't provide such basic apis?
    – Vistritium
    Mar 2, 2015 at 8:48
  • @Vistritium This was the case for Win-RT, it is available in the Windows Phone 8 api.
    – Mark Hall
    Mar 4, 2015 at 4:19
  • It won't be for a Metro App, just Desktop.
    – Mark Hall
    Mar 12, 2015 at 21:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.