Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Promise.addEventListener method

Applies to Windows and Windows Phone

Adds an event listener for the promise.

Syntax


promise.addEventListener(type, listener, capture);

Parameters

type

Type: String

The type (name) of the event.

listener

Type: Function

The listener to invoke when the event is raised.

capture

Type: Boolean

true to initiate capture, otherwise false.

Return value

This method does not return a value.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Promise

See also

Promise

 

 

Show: