Share via


BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource) Constructor

Definition

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