Partager via


BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource) Constructeur

Définition

Initialise une nouvelle instance de la classe BatteryInfoChangedEventArgs.

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)

Paramètres

level
Double

Niveau actuel de la batterie.

state
BatteryState

État de la batterie.

source
BatteryPowerSource

Source de la batterie.

S’applique à