WebUIApplication.EnteredBackground 事件

定义

当应用开始在后台运行时发生, (应用) 未显示 UI。

public:
 static event EnteredBackgroundEventHandler ^ EnteredBackground;
// Register
static event_token EnteredBackground(EnteredBackgroundEventHandler const& handler) const;

// Revoke with event_token
static void EnteredBackground(event_token const* cookie) const;

// Revoke with event_revoker
static WebUIApplication::EnteredBackground_revoker EnteredBackground(auto_revoke_t, EnteredBackgroundEventHandler const& handler) const;
public static event EnteredBackgroundEventHandler EnteredBackground;
function onEnteredBackground(eventArgs) { /* Your code */ }
Windows.UI.WebUI.WebUIApplication.addEventListener("enteredbackground", onEnteredBackground);
Windows.UI.WebUI.WebUIApplication.removeEventListener("enteredbackground", onEnteredBackground);
- or -
Windows.UI.WebUI.WebUIApplication.onenteredbackground = onEnteredBackground;
Public Shared Custom Event EnteredBackground As EnteredBackgroundEventHandler 

事件类型

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

适用于