PowerManager.PowerSavingModeChanged PowerManager.PowerSavingModeChanged PowerManager.PowerSavingModeChanged PowerManager.PowerSavingModeChanged PowerManager.PowerSavingModeChanged Event

Definition

Occurs when the power-saving mode of the phone's battery is changed.

public : event EventHandler<Platform::Object> PowerSavingModeChanged
// Register
event_token PowerSavingModeChanged(EventHandler<Platform::Object> const& handler) const;

// Revoke with event_token
void PowerSavingModeChanged(event_token const& cookie) const;

// Revoke with event_revoker
PowerSavingModeChanged_revoker PowerSavingModeChanged(auto_revoke_t, EventHandler<Platform::Object> const& handler) const;
public event EventHandler<object> PowerSavingModeChanged
Public Event PowerSavingModeChanged As EventHandler (Of object)
function onPowerSavingModeChanged(eventArgs){/* Your code */}


powerManager.addEventListener("powersavingmodechanged", onPowerSavingModeChanged);
powerManager.removeEventListener("powersavingmodechanged", onPowerSavingModeChanged);