51. App gets 5s to handle
suspend
User suspending
Running Suspended Terminated
Launches Low Memory
App App App
App resuming
Apps are notified when they
have been resumed
Splash No code
Code gets to run App not running
screen runs
52. //Register for the Suspending event and call suspendingHandler when
received
Windows.UI.WebUI.WebUIApplication.addEventListener("suspending",
suspendingHandler);
//Handle the suspending event and save the current user session using WinJS
sessionState
function suspendingHandler(eventArgs) {
//We are getting suspended
}
//Register for the Resuming event and call resumingHandler when received
Windows.UI.WebUI.WebUIApplication.addEventListener("resuming",
resumingHandler);
function resumingHandler() {
//We are getting resumed, in general do nothing
}
53. Windows 7 Windows 8
GDI GDI Metro Style DirectX
Applications Applications Applications Applications
DirectX Applications
Windows 7
Windows 8 Shell
Shell
Direct3D Direct2D DirectWrite Direct3D Direct2D DirectWrite
GDI GDI
WDDM Graphics driver WDDM Graphics driver
CPU GPU CPU GPU