PowerManager.PowerSavingModeChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)