Interface IEventAPI

Represents the Microsoft.Live.API.Event object.

Index

Methods

Methods

public subscribe(event: string, callback: Function)

Adds a handler to an event.

Parameters

  • event: string

    Required. The name of the event to which to add a handler.

  • callback: Function

    Required. Specifies the name of the callback function to handle the event.

public unsubscribe(event: string, callback?: Function)

Removes a handler from an event.

Parameters

  • event: string

    Required. The name of the event from which to remove a handler.

  • callback?: Function optional

    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.