PowerManager.RemainingDischargeTimeChanged 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.
Raised when the remaining discharge time of the battery on the device has changed.
// Register
static event_token RemainingDischargeTimeChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RemainingDischargeTimeChanged(event_token const* cookie) const;
// Revoke with event_revoker
static PowerManager::RemainingDischargeTimeChanged_revoker RemainingDischargeTimeChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RemainingDischargeTimeChanged;
function onRemainingDischargeTimeChanged(eventArgs) { /* Your code */ }
Microsoft.Windows.System.Power.PowerManager.addEventListener("remainingdischargetimechanged", onRemainingDischargeTimeChanged);
Microsoft.Windows.System.Power.PowerManager.removeEventListener("remainingdischargetimechanged", onRemainingDischargeTimeChanged);
- or -
Microsoft.Windows.System.Power.PowerManager.onremainingdischargetimechanged = onRemainingDischargeTimeChanged;
Public Shared Custom Event RemainingDischargeTimeChanged As EventHandler(Of Object)
Event Type
Remarks
To get the remaining discharge time of the battery in response to this event, use the RemainingDischargeTime property.