BackgroundEnergyManager.RecentEnergyUsageReturnedToLow 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.
Occurs when the background task's energy usage has decreased to a low usage level.
// Register
static event_token RecentEnergyUsageReturnedToLow(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RecentEnergyUsageReturnedToLow(event_token const* cookie) const;
// Revoke with event_revoker
static BackgroundEnergyManager::RecentEnergyUsageReturnedToLow_revoker RecentEnergyUsageReturnedToLow(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
// Register
static event_token RecentEnergyUsageReturnedToLow(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RecentEnergyUsageReturnedToLow(event_token const* cookie) const;
// Revoke with event_revoker
static BackgroundEnergyManager::RecentEnergyUsageReturnedToLow_revoker RecentEnergyUsageReturnedToLow(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RecentEnergyUsageReturnedToLow;
[add: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Background Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
public static event System.EventHandler<object> RecentEnergyUsageReturnedToLow;
function onRecentEnergyUsageReturnedToLow(eventArgs) { /* Your code */ }
Windows.System.Power.BackgroundEnergyManager.addEventListener("recentenergyusagereturnedtolow", onRecentEnergyUsageReturnedToLow);
Windows.System.Power.BackgroundEnergyManager.removeEventListener("recentenergyusagereturnedtolow", onRecentEnergyUsageReturnedToLow);
- or -
Windows.System.Power.BackgroundEnergyManager.onrecentenergyusagereturnedtolow = onRecentEnergyUsageReturnedToLow;
Public Shared Custom Event RecentEnergyUsageReturnedToLow As EventHandler(Of Object)
Event Type
- Attributes
Remarks
A background task operating at this level is consuming significantly less energy than normal and does not require throttling.