Windows-Apps
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

onready event

Applies to Windows and Windows Phone

Occurs when the application is ready. This event occurs after the onloaded event and the onactivated event.

Syntax


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


Event information

SynchronousNo
BubblesYes
CancelableYes

 

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 WinJS version

WinJS 1.0

Namespace

WinJS.Application

 

 

Anzeigen:
© 2017 Microsoft