BackgroundEnergyManager.RecentEnergyUsageIncreased BackgroundEnergyManager.RecentEnergyUsageIncreased BackgroundEnergyManager.RecentEnergyUsageIncreased BackgroundEnergyManager.RecentEnergyUsageIncreased BackgroundEnergyManager.RecentEnergyUsageIncreased Event

Definition

Occurs when the background task's energy usage has increased significantly.

public : event EventHandler<Platform::Object> RecentEnergyUsageIncreased
// Register
event_token RecentEnergyUsageIncreased(EventHandler<Platform::Object> const& handler) const;

// Revoke with event_token
void RecentEnergyUsageIncreased(event_token const& cookie) const;

// Revoke with event_revoker
RecentEnergyUsageIncreased_revoker RecentEnergyUsageIncreased(auto_revoke_t, EventHandler<Platform::Object> const& handler) const;
public event EventHandler<object> RecentEnergyUsageIncreased
Public Event RecentEnergyUsageIncreased As EventHandler (Of object)
function onRecentEnergyUsageIncreased(eventArgs){/* Your code */}


backgroundEnergyManager.addEventListener("recentenergyusageincreased", onRecentEnergyUsageIncreased);
backgroundEnergyManager.removeEventListener("recentenergyusageincreased", onRecentEnergyUsageIncreased);

Remarks

Notifications are sent at each significant increase up to the termination usage level.