ForegroundEnergyManager.RecentEnergyUsageIncreased Событие
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Происходит при значительном увеличении потребления энергии на переднем плане приложения.
// Register
static event_token RecentEnergyUsageIncreased(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RecentEnergyUsageIncreased(event_token const* cookie) const;
// Revoke with event_revoker
static ForegroundEnergyManager::RecentEnergyUsageIncreased_revoker RecentEnergyUsageIncreased(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
// Register
static event_token RecentEnergyUsageIncreased(EventHandler<IInspectable> const& handler) const;
// Revoke with event_token
static void RecentEnergyUsageIncreased(event_token const* cookie) const;
// Revoke with event_revoker
static ForegroundEnergyManager::RecentEnergyUsageIncreased_revoker RecentEnergyUsageIncreased(auto_revoke_t, EventHandler<IInspectable> const& handler) const;
public static event System.EventHandler<object> RecentEnergyUsageIncreased;
[add: Windows.Foundation.Metadata.Deprecated("Foreground Energy Manager has been deprecated. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 393216, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Foreground 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> RecentEnergyUsageIncreased;
function onRecentEnergyUsageIncreased(eventArgs) { /* Your code */ }
Windows.System.Power.ForegroundEnergyManager.addEventListener("recentenergyusageincreased", onRecentEnergyUsageIncreased);
Windows.System.Power.ForegroundEnergyManager.removeEventListener("recentenergyusageincreased", onRecentEnergyUsageIncreased);
- or -
Windows.System.Power.ForegroundEnergyManager.onrecentenergyusageincreased = onRecentEnergyUsageIncreased;
Public Shared Custom Event RecentEnergyUsageIncreased As EventHandler(Of Object)
Тип события
- Атрибуты
Комментарии
Уведомления отправляются при каждом значительном увеличении до уровня использования завершения.