共用方式為


IBattery.EnergySaverStatusChanged 事件

定義

發生於省電器狀態變更時。

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

事件類型

適用於