Battery.ReportUpdated Evento

Definição

Ocorre quando a carga, a capacidade ou status de uma bateria é alterada.

// 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) 

Tipo de evento

Comentários

O evento ReportUpdated é disparado por qualquer alteração no status, taxa de carga ou capacidade de energia em qualquer uma das baterias conectadas ao dispositivo. Isso geralmente ocorre imediatamente para alterações de status e periodicamente para todas as outras alterações.

Aplica-se a

Confira também