다음을 통해 공유


Promise.addEventListener method

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