WinJS.Application Namespace

Provides application-level functionality, for example activation, storage, and application events.

In this section


local object

The local storage of the application

roaming object

The roaming storage of the application.

sessionState object

Data that can usefully be contained in this object includes the current navigation page or any information the user has added to the input controls on the page. You should not add information about customization (for example colors) or user-defined lists of content.

temp object

The temp storage of the application.

addEventListener function

Adds an event listener to the control.

checkpoint function

Queues a checkpoint event.

queueEvent function

Queues an event to be processed by the WinJS.Application event queue.

removeEventListener function

Removes an event listener from the control.

start function

Starts dispatching application events.

stop function

Resets the state of the application toolkit, deleting all event listeners and all pending events (without dispatching).

onactivated event

Occurs when WinRT activation has occurred. The name of this event is "activated" (and also "mainwindowactivated").

oncheckpoint event

Occurs when receiving Process Lifetime Management (PLM) notification or when the checkpoint function is called.

onloaded event

Occurs after DOMContentLoaded has occurred.

onready event

Occurs when the application is ready.

onsettings event

Occurs when app settings are changed.

onunload event

Occurs when the application is about to be unloaded.




Ajouts de la communauté

© 2016 Microsoft