javascript - Windows Phone 8.1 Battery Info -


hi need functionality windows phone 8.1 winrt app (javascript). 1. api detect when device under charging 2. api detect battery percentage under limit.

there no actual way see if battery charging can use following code:

debug.writelineif(battery.getdefault().remainingdischargetime > timespan.fromdays(5),"battery charging"); 

in order check battery level need following:

debug.writeline(battery.getdefault().remainingchargepercent.tostring() + "% battery remiaining"); 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -