Peyman
Peyman

Reputation: 3087

Get the Battery status on windows 8

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?

Upvotes: 4

Views: 5331

Answers (1)

Mark Hall
Mark Hall

Reputation: 54562

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.

Upvotes: 6

Related Questions