Export (0) Print
Expand All

WL.Event.unsubscribe function

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.

NameOccurs 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.

Examples


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


Requirements

Library

Wl.js

 

 

Show:
© 2014 Microsoft