PowerManager.RemainingChargePercentChanged Evento
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Ocorre quando RemainingChargePercent é alterado.
// Register
static event_token RemainingChargePercentChanged(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RemainingChargePercentChanged(event_token const* cookie) const;
// Revoke with event_revoker
static PowerManager::RemainingChargePercentChanged_revoker RemainingChargePercentChanged(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RemainingChargePercentChanged;
function onRemainingChargePercentChanged(eventArgs) { /* Your code */ }
Windows.System.Power.PowerManager.addEventListener("remainingchargepercentchanged", onRemainingChargePercentChanged);
Windows.System.Power.PowerManager.removeEventListener("remainingchargepercentchanged", onRemainingChargePercentChanged);
- or -
Windows.System.Power.PowerManager.onremainingchargepercentchanged = onRemainingChargePercentChanged;
Public Shared Custom Event RemainingChargePercentChanged As EventHandler(Of Object)