WebUIApplication.EnteredBackground 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 app has begins running in the background (no UI is shown for the app).
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
Event Type
Windows requirements
Device family |
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v3.0)
|