Reputation: 895
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?
Upvotes: 6
Views: 2652
Reputation: 161
As mentioned earlier, there is currently no straightforward way to get the device info on a windows phone 8.1 runtime app although its possible to get some infor using the:
Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation class http://msdn.microsoft.com/en-us/library/windows/apps/windows.security.exchangeactivesyncprovisioning.easclientdeviceinformation.aspx
Hope this helps
Upvotes: 0
Reputation: 29790
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.
Upvotes: 1