Methods and properties for battery and charging information of the device.
public static class Battery
Platform specific remarks:
- Android: Battery_Stats permission must be set in manifest.
- iOS: Simulator will not return battery information, must be run on device
- UWP: None
Gets the current charge level of the device from 0.0 to 1.0.
Gets the current energy saver status of the device.
Gets the current power source for the device.
Gets the charging state of the device if it can be determined.
Event trigger when battery properties have changed.
Event that is triggered when energy saver status changes.