locked
How can I tell if a device is running on battery or mains power?

    Question

  • I'd like to change a few things in my app based on whether the user is on battery or mains, such as automatically updating content, on by default when on mains power, off by default when on battery. Can this be done from JS?

    If not, can this information be obtained via C# instead and pushed through to the JS app?

    Thanks,

    Karen

    Thursday, April 12, 2012 3:21 PM

Answers