Occurs when Windows Runtime activation has occurred. The name of this event is "activated" (and also "mainwindowactivated"). This event occurs after the loaded event and before the ready event.
WinJS.Application.addEventListener("activated", listenerName); or WinJS.Application.onactivated = listenerName;
Event handler parameters
An object that contains information about the event. For more information about event arguments, see the Windows Runtime event argument classes:
Whenever your app is launched, the activated event is raised. This event can also be raised while your app is running if the system needs to pass the app parameters related to a new activation contract. You can use the activated event to restore the previous state of your app and to retrieve the activation parameters related to the contract for which your app is being activated. For a full list of the activation contracts and more details on their parameters see the ActivationKind enumeration.
For more information about the application lifecycle, see Guidelines for managing the app lifecycle.
Minimum WinJS version