Share via


PowerManager.PowerSavingModeChanged Event

Definition

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

// Register
static event_token PowerSavingModeChanged(EventHandler<IInspectable> const& handler) const;

// Revoke with event_token
static void PowerSavingModeChanged(event_token const* cookie) const;

// Revoke with event_revoker
static PowerManager::PowerSavingModeChanged_revoker PowerSavingModeChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> PowerSavingModeChanged;
function onPowerSavingModeChanged(eventArgs) { /* Your code */ }
Windows.Phone.System.Power.PowerManager.addEventListener("powersavingmodechanged", onPowerSavingModeChanged);
Windows.Phone.System.Power.PowerManager.removeEventListener("powersavingmodechanged", onPowerSavingModeChanged);
- or -
Windows.Phone.System.Power.PowerManager.onpowersavingmodechanged = onPowerSavingModeChanged;
Public Shared Custom Event PowerSavingModeChanged As EventHandler(Of Object) 

Event Type

Applies to