共用方式為


IBattery.BatteryInfoChanged 事件

定義

發生於電池屬性變更時。

public:
 event EventHandler<Microsoft::Maui::Devices::BatteryInfoChangedEventArgs ^> ^ BatteryInfoChanged;
event EventHandler<Microsoft.Maui.Devices.BatteryInfoChangedEventArgs> BatteryInfoChanged;
member this.BatteryInfoChanged : EventHandler<Microsoft.Maui.Devices.BatteryInfoChangedEventArgs> 
Event BatteryInfoChanged As EventHandler(Of BatteryInfoChangedEventArgs) 

事件類型

適用於