WebUIApplication.LeavingBackground 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 is about to leave the background and before the app's UI is shown.
public:
static event LeavingBackgroundEventHandler ^ LeavingBackground;
// Register
static event_token LeavingBackground(LeavingBackgroundEventHandler const& handler) const;
// Revoke with event_token
static void LeavingBackground(event_token const* cookie) const;
// Revoke with event_revoker
static WebUIApplication::LeavingBackground_revoker LeavingBackground(auto_revoke_t, LeavingBackgroundEventHandler const& handler) const;
public static event LeavingBackgroundEventHandler LeavingBackground;
function onLeavingBackground(eventArgs) { /* Your code */ }
Windows.UI.WebUI.WebUIApplication.addEventListener("leavingbackground", onLeavingBackground);
Windows.UI.WebUI.WebUIApplication.removeEventListener("leavingbackground", onLeavingBackground);
- or -
Windows.UI.WebUI.WebUIApplication.onleavingbackground = onLeavingBackground;
Public Shared Custom Event LeavingBackground As LeavingBackgroundEventHandler
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)
|