Windows Dev Center

onready event

[This documentation is preliminary and is subject to change.]

Applies to: Metro style apps only

Occurs when the application is ready.

Syntax


WinJS.Application.addEventListener("ready", listenerName);
or
WinJS.Application.onready = listenerName;


Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. The detail property of this object includes the following sub-properties:

  • type:"ready"
  • setPromise: the Promise indicates that the event listener has pending asynchronous work. When the Promise is completed, the next handler will be dispatched.

Remarks

For more information about the application lifecycle, see Guidelines for managing the app lifecycle.

Requirements

Minimum supported client

Windows 8 Consumer Preview

Minimum supported server

Windows Server 8 Beta

Namespace

WinJS.Application

Library

Base.js

 

 

Build date: 2/10/2012

Ajouts de la communauté

AJOUTER
Afficher:
© 2015 Microsoft