Advertisement
Slassh

Untitled

Apr 24th, 2013
2,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.onactivated = function (args) {
  2.    if (args.detail.kind === activation.ActivationKind.launch) {
  3.         if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
  4.              // TODO: This application has been newly launched. Initialize
  5.             // your application here.
  6.         } else {
  7.             // TODO: This application has been reactivated from suspension.
  8.             // Restore application state here.
  9.         }
  10.         args.setPromise(WinJS.UI.processAll());
  11.     }
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement