BatteryInfoChangedEventArgs(Double, BatteryState, BatteryPowerSource) 构造函数

定义

初始化 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)

参数

level
Double

电池的当前电量。

state
BatteryState

电池的状态。

source
BatteryPowerSource

电池的源。

适用于