BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource) Constructor
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.
Initializes a new instance of the BatteryInfoChangedEventArgs class.
public:
BatteryInfoChangedEventArgs(double level, Microsoft::Maui::Devices::BatteryState state, Microsoft::Maui::Devices::BatteryPowerSource source);
public BatteryInfoChangedEventArgs (double level, Microsoft.Maui.Devices.BatteryState state, Microsoft.Maui.Devices.BatteryPowerSource source);
new Microsoft.Maui.Devices.BatteryInfoChangedEventArgs : double * Microsoft.Maui.Devices.BatteryState * Microsoft.Maui.Devices.BatteryPowerSource -> Microsoft.Maui.Devices.BatteryInfoChangedEventArgs
Public Sub New (level As Double, state As BatteryState, source As BatteryPowerSource)
Parameters
- level
- Double
The current level of the battery.
- state
- BatteryState
The state of the battery.
- source
- BatteryPowerSource
The source of the battery.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.