Share via


Battery.ReportUpdated Event

Definition

Occurs when the charge, capacity, or status of a battery changes.

// Register
event_token ReportUpdated(TypedEventHandler<Battery, IInspectable const&> const& handler) const;

// Revoke with event_token
void ReportUpdated(event_token const* cookie) const;

// Revoke with event_revoker
Battery::ReportUpdated_revoker ReportUpdated(auto_revoke_t, TypedEventHandler<Battery, IInspectable const&> const& handler) const;
public event TypedEventHandler<Battery,object> ReportUpdated;
function onReportUpdated(eventArgs) { /* Your code */ }
battery.addEventListener("reportupdated", onReportUpdated);
battery.removeEventListener("reportupdated", onReportUpdated);
- or -
battery.onreportupdated = onReportUpdated;
Public Custom Event ReportUpdated As TypedEventHandler(Of Battery, Object) 

Event Type

Remarks

The ReportUpdated event is triggered by any change in status, charge rate, or power capacity on any of the batteries connected to the device. This typically happens immediately for status changes and periodically for all other changes.

Applies to

See also