Google SubramanyamRaju Xamarin & Windows App Dev Tutorials
Showing posts with label Battery. Show all posts
Showing posts with label Battery. Show all posts

Wednesday, 13 August 2014

Windows Phone 8 Battery API:Retreiving the Remaining time of device battery c#

Introduction:

The Battery class is available from "Windows.Phone.Devices.Power" namespace which includes the property "RemainingDischargeTime" which is a read only property that gets the time left for the windows phone device battery to be fully discharged.Get the access to the Battery instance with the Battery.GetDefault() and then use the property RemainingDischargeTime to retreive the time left.The Battery API makes a nice addition to the WP8 SDK.I can see in the near future that some applications will display the battery metrics on a Live Tile or in the application that hides the System Tray.
Search Engine Submission - AddMe