Are there any classes in Windows RunTime APIs to find the current device information(OS info, RAM size, power source) ?
The equivalent class in Windows Phone 8 is Microsoft.Phone.Info.DeviceStatus (http://bit.ly/deviceStatus)
Any Help?
According to my knowledge and what I've searched currently there is no method that will tell you that. Similar problem according to WinRT was raised here.
As I've also searched looking at MSDN, there is also no alternative to System.Power.
You can check the battery status thought, but that won't help you to check if it is powered or not.
I'm also curious how this will be solved, hence IMO there should be such an ability when developing for phone to check if it's powered. Under WP8.0 for example BackgroundTransfers for large files required external power supply, and no I'm not able to check it - maybe it will be solved in final release.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With