Windows apps
Collapse the table of content
Expand the table of content
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.

WL.Event.unsubscribe

Last modified: March 13, 2015

WL.Event.unsubscribe removes a handler from an event, in a Windows Store app using JavaScript or web app.

Parameters

  • event

    Required. The name of the event from which to remove a handler. The Live SDK JavaScript API supports the following events.

    Name

    Occurs when

    auth.login

    The user completes the sign-in process.

    auth.logout

    The user completes the sign-out process.

    auth.sessionChange

    The user's access token has changed.

    auth.statusChange

    The user's status has changed.

    wl.log

    An error has occurred with an API call.

  • callback

    Optional. Removes the callback function from the event. If this parameter is omitted or is null, all callback functions that are registered to the event are removed. Removes the callback function from the specified event.

Example

WL.Event.unsubscribe("auth.logout");

Requirements

Library

Wl.js

Show:
© 2017 Microsoft