Occurs when the app is resuming.
Syntax
function onResuming(eventArgs) { /* Your code */ } // addEventListener syntax webUIApplication.addEventListener("resuming", onResuming); webUIApplication.removeEventListener("resuming", onResuming); - or - webUIApplication.onresuming = onResuming;
Event information
| Delegate | ResumingEventHandler |
|---|
Remarks
The system suspends your app whenever the user switches to another app or to the desktop. The system resumes your app whenever the user switches back to it. When the system resumes your app, the content of your variables and data structures is the same as it was before the system suspended the app. The system restores the app exactly where it left off, so that it appears to the user as if it's been running in the background. However, the app may have been suspended for a significant amount of time, so it should refresh any displayed content that might have changed while the app was suspended, such as news feeds or the user's location.
If your app doesn't have any displayed content to refresh, there's no need for it to handle the resuming event.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
Windows.UI.WebUI |
|
Metadata |
|
See also
- Tasks
- How to resume an app
- Reference
- WebUIApplication
- Samples
- App activated, resume, and suspend using the WRL sample
Build date: 12/4/2012