BatteryInfoChangedEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Battery changed information.
public class BatteryInfoChangedEventArgs : EventArgs
- Inheritance
-
BatteryInfoChangedEventArgs
Remarks
Returns the current information of the battery.
Constructors
BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource) |
The public constructor. |
Properties
ChargeLevel |
Gets the current charge level of the device from 0.0 to 1.0. |
PowerSource |
Gets the current power source for the device. |
State |
Gets the charging state of the device if it can be determined. |
Methods
ToString() |
Outputs the data as a string. |
Applies to
Xamarin.Essentials
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for