WL.Event.unsubscribe

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